Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I have a partial this is setup like this for a method in controller "X"
- _login.rhtml:
- <% form_tag do %>
- <p>Please log in.</p>
- <p>
- <label>Username:</label>
- <%= text_field_tag 'login' %>
- </p>
- <p>
- <label>Password:</label>
- <%= password_field_tag 'password' %>
- </p>
- <p><%= submit_tag 'login' , :controller => 'account', :action => 'login' %></p>
- <p><%= submit_tag 'Lost Password', :controller => 'account', :action => 'lost_password' %></p>
- <% end %>
- And is being rendered by a method in controller "Y" withing a different view like so:
- <%= render :partial => 'account/login' %>
- On pressing submit, on the partial, the request that goes out is:
- Parameters: {"commit"=>"login", "authenticity_token"=>"09f0ebf284cf1480471b93ef1d94f0f0e88d667b", "action"=>"index", "controller"=>"home", "password"=>"kuta", "login"=>"hkhan"}
- The question is why does the controller name not change from home to account?????
Add Comment
Please, Sign In to add comment