Skip to content
Permalink
Browse files

Querystrings in Rails

  • Loading branch information
ImsirovicAjdin committed Dec 24, 2019
1 parent c82d2aa commit 470a82a731fdb33f4a8ba1dbc8bfc49e738d42b2
Showing with 27 additions and 1 deletion.
  1. +27 −1 app/views/another/index.html.erb
@@ -2,4 +2,30 @@
<p>Find me in app/views/another/index.html.erb</p>
<p>
<%= @greeting %>
</p>
</p>
<p>
<%= link_to 'Go to another#edit',
{:controller => 'another',
:action => 'edit'} %>
</p>
<p>
<%= button_to 'Go to another#edit',
{:controller => 'another',
:action => 'edit'}, method: :get %>
</p>
<h2>
<%= link_to 'Go to another#edit',
{:controller => 'another',
:action => 'edit',
:pickColoe => 'blue',
:pickCar => 'minivan',
:user => 1}%>
</h2>
<h1>
<%= link_to 'Go to another#edit',
{:controller => 'another',
:action => 'edit',
:pickColoe => 'blue',
:pickCar => 'minivan',
:id => 1}%>
</h1>

0 comments on commit 470a82a

Please sign in to comment.
You can’t perform that action at this time.