Hi,
I have a controller called students_controller.rb
From a view file i am calling the index method by the URL like,
students_path(:format => :json)
I have no problem in that. But i want to pass the teacher_id as the
parameter. Like,
students_path(:format => :json, :teacher_id => 5)
The problem here is, the parameter is passing as,
"amp;teacher_id" => "5"
I want to get the correct params. Is there any way to pass correctly?
Thanks in advance.
- Karthik.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---