Re: [Rails] Issue with passing parameter to action using link_to

2012-11-30 Thread Jim Ruther Nill
On Fri, Nov 30, 2012 at 4:56 PM, sumit srivastava < sumit.theinvinci...@gmail.com> wrote: > On 30 November 2012 14:16, Colin Law wrote: > >> On 30 November 2012 06:50, sumit srivastava >> wrote: >> > Verified it. Don't have puts anywhere else. >> >> Jim asked you to post the contents of the log

Re: [Rails] Issue with passing parameter to action using link_to

2012-11-30 Thread sumit srivastava
On 30 November 2012 14:16, Colin Law wrote: > On 30 November 2012 06:50, sumit srivastava > wrote: > > Verified it. Don't have puts anywhere else. > > Jim asked you to post the contents of the log (log/development.log) > when you click the link. Why have you not done that? Or have I > missed t

Re: [Rails] Issue with passing parameter to action using link_to

2012-11-30 Thread Colin Law
On 30 November 2012 06:50, sumit srivastava wrote: > Verified it. Don't have puts anywhere else. Jim asked you to post the contents of the log (log/development.log) when you click the link. Why have you not done that? Or have I missed that message? Colin -- You received this message because

Re: [Rails] Issue with passing parameter to action using link_to

2012-11-29 Thread Jim Ruther Nill
On Fri, Nov 30, 2012 at 2:50 PM, sumit srivastava < sumit.theinvinci...@gmail.com> wrote: > Verified it. Don't have puts anywhere else. > ok. sorry but I ran out of ideas. without looking at the logs or the whole code, i won't be able to help. > > Regards > Sumit Srivastava > > The power of i

Re: [Rails] Issue with passing parameter to action using link_to

2012-11-29 Thread sumit srivastava
Verified it. Don't have puts anywhere else. Regards Sumit Srivastava The power of imagination makes us infinite... On 30 November 2012 11:39, Jim Ruther Nill wrote: > > > > On Fri, Nov 30, 2012 at 1:50 PM, sumit srivastava < > sumit.theinvinci...@gmail.com> wrote: > >> If it were being direct

Re: [Rails] Issue with passing parameter to action using link_to

2012-11-29 Thread Jim Ruther Nill
On Fri, Nov 30, 2012 at 1:50 PM, sumit srivastava < sumit.theinvinci...@gmail.com> wrote: > If it were being directed to some other action, then *** > should not have been printed. And when I am trying to access this parameter > from the view "index.html.haml", its value is printed exa

Re: [Rails] Issue with passing parameter to action using link_to

2012-11-29 Thread sumit srivastava
If it were being directed to some other action, then *** should not have been printed. And when I am trying to access this parameter from the view "index.html.haml", its value is printed exactly what is being passed. Regards Sumit Srivastava The power of imagination makes us infinite.

Re: [Rails] Issue with passing parameter to action using link_to

2012-11-29 Thread Jim Ruther Nill
On Fri, Nov 30, 2012 at 1:32 PM, sumit srivastava < sumit.theinvinci...@gmail.com> wrote: > On 30 November 2012 10:55, Jim Ruther Nill wrote: > >> >> >> >> On Fri, Nov 30, 2012 at 1:16 PM, sumit srivastava < >> sumit.theinvinci...@gmail.com> wrote: >> >>> On 30 November 2012 10:41, Jim Ruther Nil

Re: [Rails] Issue with passing parameter to action using link_to

2012-11-29 Thread sumit srivastava
On 30 November 2012 10:55, Jim Ruther Nill wrote: > > > > On Fri, Nov 30, 2012 at 1:16 PM, sumit srivastava < > sumit.theinvinci...@gmail.com> wrote: > >> On 30 November 2012 10:41, Jim Ruther Nill wrote: >> >>> >>> >>> >>> On Fri, Nov 30, 2012 at 12:51 PM, Sumit Srivastava < >>> sumit.theinvinc

Re: [Rails] Issue with passing parameter to action using link_to

2012-11-29 Thread Jim Ruther Nill
On Fri, Nov 30, 2012 at 1:16 PM, sumit srivastava < sumit.theinvinci...@gmail.com> wrote: > On 30 November 2012 10:41, Jim Ruther Nill wrote: > >> >> >> >> On Fri, Nov 30, 2012 at 12:51 PM, Sumit Srivastava < >> sumit.theinvinci...@gmail.com> wrote: >> >>> Hi, >>> >>> I have a controller named Us

Re: [Rails] Issue with passing parameter to action using link_to

2012-11-29 Thread sumit srivastava
On 30 November 2012 10:41, Jim Ruther Nill wrote: > > > > On Fri, Nov 30, 2012 at 12:51 PM, Sumit Srivastava < > sumit.theinvinci...@gmail.com> wrote: > >> Hi, >> >> I have a controller named Users with index action. >> >> def index >> puts "* #{params[:city]}" >> ... >> .

Re: [Rails] Issue with passing parameter to action using link_to

2012-11-29 Thread Jim Ruther Nill
On Fri, Nov 30, 2012 at 12:51 PM, Sumit Srivastava < sumit.theinvinci...@gmail.com> wrote: > Hi, > > I have a controller named Users with index action. > > def index > puts "* #{params[:city]}" > ... > ... > end > > From the view, > link_to(:city, list_users_with_city_path(

[Rails] Issue with passing parameter to action using link_to

2012-11-29 Thread Sumit Srivastava
Hi, I have a controller named Users with index action. def index puts "* #{params[:city]}" ... ... end >From the view, link_to(:city, list_users_with_city_path(:city => city.name)) But when I click on this link, it doesn't prints out anything for the params. All the "*"