We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37d2581 commit 9547700Copy full SHA for 9547700
app/controllers/links_controller.rb
@@ -8,6 +8,7 @@ def store
8
@link = Link.create!(link_params)
9
10
if @link.valid?
11
+ @link.shortened = "#{request.base_url}/#{@link.shortened}"
12
json_response(@link, :created)
13
end
14
0 commit comments