Re: [Rails] Action path - syntax error, unexpected tIDENTIFIER, expecting ')'

2010-02-01 Thread vihrao
Rob Biedenharn-2 wrote: On Jan 31, 2010, at 3:50 PM, vihrao wrote: I tried %= link_to 'Login', login_user_path(user) % it did not work I tried: %= link_to 'Login', :controller = 'user', :action = 'login' % that worked. So I still don't get how the REST Path is defined and can

Re: [Rails] Action path - syntax error, unexpected tIDENTIFIER, expecting ')'

2010-02-01 Thread Rob Biedenharn
On Feb 1, 2010, at 12:19 PM, vihrao wrote: Rob Biedenharn-2 wrote: On Jan 31, 2010, at 3:50 PM, vihrao wrote: I tried %= link_to 'Login', login_user_path(user) % it did not work I tried: %= link_to 'Login', :controller = 'user', :action = 'login' % that worked. So I still don't get how the

Re: [Rails] Action path - syntax error, unexpected tIDENTIFIER, expecting ')'

2010-02-01 Thread vihrao
Thank you. I was confused between named routes and RESTful routes Rob Biedenharn-2 wrote: On Feb 1, 2010, at 12:19 PM, vihrao wrote: Rob Biedenharn-2 wrote: On Jan 31, 2010, at 3:50 PM, vihrao wrote: I tried %= link_to 'Login', login_user_path(user) % it did not work I tried: %=

[Rails] Action path - syntax error, unexpected tIDENTIFIER, expecting ')'

2010-01-31 Thread vihrao
I have a user controller with login as action. When I access the index.html.erb file via application.layout file. I get a error on the login link on the index.html.erb page. I think I am having dfifficulty in setting up path to an action or even understanding how to set REST path properly. Can

Re: [Rails] Action path - syntax error, unexpected tIDENTIFIER, expecting ')'

2010-01-31 Thread Rob Biedenharn
On Jan 31, 2010, at 2:40 PM, vihrao wrote: I have a user controller with login as action. When I access the index.html.erb file via application.layout file. I get a error on the login link on the index.html.erb page. I think I am having dfifficulty in setting up path to an action or even

Re: [Rails] Action path - syntax error, unexpected tIDENTIFIER, expecting ')'

2010-01-31 Thread vihrao
I tried %= link_to 'Login', login_user_path(user) % it did not work I tried: %= link_to 'Login', :controller = 'user', :action = 'login' % that worked. So I still don't get how the REST Path is defined and can be used? Rob Biedenharn-2 wrote: On Jan 31, 2010, at 2:40 PM, vihrao wrote: I

Re: [Rails] Action path - syntax error, unexpected tIDENTIFIER, expecting ')'

2010-01-31 Thread Rob Biedenharn
On Jan 31, 2010, at 3:50 PM, vihrao wrote: I tried %= link_to 'Login', login_user_path(user) % it did not work I tried: %= link_to 'Login', :controller = 'user', :action = 'login' % that worked. So I still don't get how the REST Path is defined and can be used? What do you have in your