vihrao
2010-Jan-31 19:40 UTC
Action path - syntax error, unexpected tIDENTIFIER, expecting '')''
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 someone please help me. Here is the error on the home page: C:/RoR/health/app/views/home/index.html.erb:3: syntax error, unexpected tIDENTIFIER, expecting '')'' ...link_to ''Login'' login_user_path(user) ).to_s); @output_buffe... ... ^ Extracted source (around line #3): 1: <h1>Home app/views/home/index.html.erb</h1> 2: 3: <%= link_to ''Login'' login_user_path(user) %> ] Here is my index.html.erb <h1>Welcome </h1> <%= link_to ''Login'' login_user_path %> I also tried various other formats for the path: <%= link_to ''Login'' login_user_path(user) %> <%= link_to ''Login'' user_path %> The error repeats at the same line. Here is the login.html.erb <% form_tag :action=> ''Login'' do %> <h3>Login</h3> <label for="user_login">Login:</label><br/> <%= text_field "user", "login", :size => 20 %><br/> <label for="user_password">Password:</label><br/> <%= password_field "user", "password", :size => 20 %><br/> <%= submit_tag "Submit" %> <%= link_to ''Register'', :action => ''signup'' %> | <%= link_to ''Forgot my password'', :action => ''forgot_password'' %> <% end %> Here is the application layout file: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" > <html xmlns="w3.org/1999/xhtml" xml:lang="en" lang="en" > <head> <meta name="Description" content="Your description"/> <meta name="KeyWords" content="Your keywords"/> <meta http-equiv="X-UA-Compatible" content="IE=8"/> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <title><%= "Your Custom Title" || yield(:title) %></title> <%= stylesheet_link_tag(''default.css'') %> <%= javascript_include_tag(:defaults) %> <%= yield(:head) -%> </head> <body id="test"> <div id="banner"> <%= image_tag("rails.png") %> <%= @page_title || "Test App" %> </div> <div id="topbar"> <div id="nav_main"> <ul id="navlist"> <li id="current"> /home Home </li> <li> /home/aboutus About us </li> <li> /home/privacy Privacy </li> </ul> </div> </div> <div id="columns"> <div id="side"> <h1> Menu </h1> </div> <div id="main"> <%= yield %> </div> </div> </html> -- View this message in context: old.nabble.com/Action-path---syntax-error,-unexpected-tIDENTIFIER,-expecting-')'-tp27395831p27395831.html Sent from the RubyOnRails Users mailing list archive at Nabble.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
Rob Biedenharn
2010-Jan-31 20:44 UTC
Re: Action path - syntax error, unexpected tIDENTIFIER, expecting '')''
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 understanding > how to set > REST path properly. Can someone please help me. > > Here is the error on the home page: > C:/RoR/health/app/views/home/index.html.erb:3: syntax error, > unexpected > tIDENTIFIER, expecting '')'' > ...link_to ''Login'' login_user_path(user) ).to_s); @output_buffe... > ... ^ > Extracted source (around line #3): > 1: <h1>Home app/views/home/index.html.erb</h1> > 2: > 3: <%= link_to ''Login'' login_user_path(user) %> > ]<%= link_to ''Login'', login_user_path(user) %> ^ You''re actually missing a comma -Rob Rob Biedenharn agileconsultingllc.com Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
vihrao
2010-Jan-31 20:50 UTC
Re: Action path - syntax error, unexpected tIDENTIFIER, expecting '')''
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 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 someone please help me. >> >> Here is the error on the home page: >> C:/RoR/health/app/views/home/index.html.erb:3: syntax error, >> unexpected >> tIDENTIFIER, expecting '')'' >> ...link_to ''Login'' login_user_path(user) ).to_s); @output_buffe... >> ... ^ >> Extracted source (around line #3): >> 1: <h1>Home app/views/home/index.html.erb</h1> >> 2: >> 3: <%= link_to ''Login'' login_user_path(user) %> >> ] > > > <%= link_to ''Login'', login_user_path(user) %> > ^ > You''re actually missing a comma > > -Rob > > Rob Biedenharn agileconsultingllc.com > Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org > > > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > groups.google.com/group/rubyonrails-talk?hl=en. > > >-- View this message in context: old.nabble.com/Action-path---syntax-error,-unexpected-tIDENTIFIER,-expecting-')'-tp27395831p27396446.html Sent from the RubyOnRails Users mailing list archive at Nabble.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
Rob Biedenharn
2010-Jan-31 21:38 UTC
Re: Action path - syntax error, unexpected tIDENTIFIER, expecting '')''
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 config/routes.rb file? That''s key to understanding the named routes that you have available. If you''re that new, you might want to check out a PeepCode screencast or some other kind of tutorial. For example: The "REST for Rails 2" screencast: peepcode.com/products/rest-for-rails-2 Or start with the free preview: peepcode.com/system/uploads/2008/peepcode-rest-promo.mov -Rob> > Rob Biedenharn-2 wrote: >> >> 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 understanding >>> how to set >>> REST path properly. Can someone please help me. >>> >>> Here is the error on the home page: >>> C:/RoR/health/app/views/home/index.html.erb:3: syntax error, >>> unexpected >>> tIDENTIFIER, expecting '')'' >>> ...link_to ''Login'' login_user_path(user) ).to_s); @output_buffe... >>> ... ^ >>> Extracted source (around line #3): >>> 1: <h1>Home app/views/home/index.html.erb</h1> >>> 2: >>> 3: <%= link_to ''Login'' login_user_path(user) %> >>> ] >> >> >> <%= link_to ''Login'', login_user_path(user) %> >> ^ >> You''re actually missing a comma >> >> -Rob >> >> Rob Biedenharn agileconsultingllc.com >> Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org >> >> >> >> -- >> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit this group at >> groups.google.com/group/rubyonrails-talk?hl=en. >> >> >> > > -- > View this message in context: old.nabble.com/Action-path---syntax-error,-unexpected-tIDENTIFIER,-expecting-')'-tp27395831p27396446.html > Sent from the RubyOnRails Users mailing list archive at Nabble.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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 groups.google.com/group/rubyonrails-talk?hl=en > . >Rob Biedenharn agileconsultingllc.com Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org +1 513-295-4739 Skype: rob.biedenharn -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
vihrao
2010-Feb-01 17:19 UTC
Re: Action path - syntax error, unexpected tIDENTIFIER, expecting '')''
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 be used? > > What do you have in your config/routes.rb file? That''s key to > understanding the named routes that you have available. > > map.connect '':controller/:action/:id'' > map.connect '':controller/:action/:id.:format'' > map.root :controller => "home" > map.connect '':action'', :controller => "static" > map.login ''Login'', :controller => ''user'', :action => ''login'' > > The above route should haveve created default paths that I would like to > use? If so can you tell me what would they be based on the route entry. > > -Rob > >> >> Rob Biedenharn-2 wrote: >>> >>> 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 understanding >>>> how to set >>>> REST path properly. Can someone please help me. >>>> >>>> Here is the error on the home page: >>>> C:/RoR/health/app/views/home/index.html.erb:3: syntax error, >>>> unexpected >>>> tIDENTIFIER, expecting '')'' >>>> ...link_to ''Login'' login_user_path(user) ).to_s); @output_buffe... >>>> ... ^ >>>> Extracted source (around line #3): >>>> 1: <h1>Home app/views/home/index.html.erb</h1> >>>> 2: >>>> 3: <%= link_to ''Login'' login_user_path(user) %> >>>> ] >>> >>> >>> <%= link_to ''Login'', login_user_path(user) %> >>> ^ >>> You''re actually missing a comma >>> >>> -Rob >>> >>> Rob Biedenharn agileconsultingllc.com >>> Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org >>> >>> >>> >>> -- >>> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> For more options, visit this group at >>> groups.google.com/group/rubyonrails-talk?hl=en. >>> >>> >>> >> >> -- >> View this message in context: >> old.nabble.com/Action-path---syntax-error,-unexpected-tIDENTIFIER,-expecting-')'-tp27395831p27396446.html >> Sent from the RubyOnRails Users mailing list archive at Nabble.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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 >> groups.google.com/group/rubyonrails-talk?hl=en >> . >> > > Rob Biedenharn agileconsultingllc.com > Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org > +1 513-295-4739 > Skype: rob.biedenharn > > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > groups.google.com/group/rubyonrails-talk?hl=en. > > >-- View this message in context: old.nabble.com/Action-path---syntax-error,-unexpected-tIDENTIFIER,-expecting-')'-tp27395831p27407824.html Sent from the RubyOnRails Users mailing list archive at Nabble.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
Rob Biedenharn
2010-Feb-01 17:53 UTC
Re: Action path - syntax error, unexpected tIDENTIFIER, expecting '')''
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 REST Path is defined and can be used? >> >> What do you have in your config/routes.rb file? That''s key to >> understanding the named routes that you have available. >> >> > map.connect '':controller/:action/:id'' > map.connect '':controller/:action/:id.:format'' > map.root :controller => "home" > map.connect '':action'', :controller => "static" > map.login ''Login'', :controller => ''user'', :action => ''login'' > > The above route should haveve created default paths that I would > like to > use? If so can you tell me what would they be based on the route > entry.Wow, you really want to look into named routes. The only two names that you have are: root_path login_path and neither takes an argument. Typically, your login action doesn''t have a known user because that''t really the point of logging in, isn''t it? map.resources :users would give you a set of named RESTful routes. The Rails documentation will give you all the details. -Rob>> >> -Rob >> >>> >>> Rob Biedenharn-2 wrote: >>>> >>>> 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 understanding >>>>> how to set >>>>> REST path properly. Can someone please help me. >>>>> >>>>> Here is the error on the home page: >>>>> C:/RoR/health/app/views/home/index.html.erb:3: syntax error, >>>>> unexpected >>>>> tIDENTIFIER, expecting '')'' >>>>> ...link_to ''Login'' login_user_path(user) ).to_s); @output_buffe... >>>>> ... ^ >>>>> Extracted source (around line #3): >>>>> 1: <h1>Home app/views/home/index.html.erb</h1> >>>>> 2: >>>>> 3: <%= link_to ''Login'' login_user_path(user) %> >>>>> ] >>>> >>>> >>>> <%= link_to ''Login'', login_user_path(user) %> >>>> ^ >>>> You''re actually missing a comma >>>> >>>> -Rob >>>> >>>> Rob Biedenharn agileconsultingllc.com >>>> Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org >>>> >>>> >>>> >>>> -- >>>> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>> For more options, visit this group at >>>> groups.google.com/group/rubyonrails-talk?hl=en. >>>> >>>> >>>> >>> >>> -- >>> View this message in context: >>> old.nabble.com/Action-path---syntax-error,-unexpected-tIDENTIFIER,-expecting-')'-tp27395831p27396446.html >>> Sent from the RubyOnRails Users mailing list archive at Nabble.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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 >>> groups.google.com/group/rubyonrails-talk?hl=en >>> . >>> >> >> Rob Biedenharn agileconsultingllc.com >> Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org >> +1 513-295-4739 >> Skype: rob.biedenharn >> >> >> -- >> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit this group at >> groups.google.com/group/rubyonrails-talk?hl=en. >> >> >> > > -- > View this message in context: old.nabble.com/Action-path---syntax-error,-unexpected-tIDENTIFIER,-expecting-')'-tp27395831p27407824.html > Sent from the RubyOnRails Users mailing list archive at Nabble.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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 groups.google.com/group/rubyonrails-talk?hl=en > . >Rob Biedenharn agileconsultingllc.com Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org +1 513-295-4739 Skype: rob.biedenharn -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
vihrao
2010-Feb-01 20:57 UTC
Re: Action path - syntax error, unexpected tIDENTIFIER, expecting '')''
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: >>>> <%= 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 config/routes.rb file? That''s key to >>> understanding the named routes that you have available. >>> >>> >> map.connect '':controller/:action/:id'' >> map.connect '':controller/:action/:id.:format'' >> map.root :controller => "home" >> map.connect '':action'', :controller => "static" >> map.login ''Login'', :controller => ''user'', :action => ''login'' >> >> The above route should haveve created default paths that I would >> like to >> use? If so can you tell me what would they be based on the route >> entry. > > Wow, you really want to look into named routes. > > The only two names that you have are: > root_path > login_path > and neither takes an argument. > > Typically, your login action doesn''t have a known user because that''t > really the point of logging in, isn''t it? > > map.resources :users > > would give you a set of named RESTful routes. > > The Rails documentation will give you all the details. > > -Rob > > >>> >>> -Rob >>> >>>> >>>> Rob Biedenharn-2 wrote: >>>>> >>>>> 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 understanding >>>>>> how to set >>>>>> REST path properly. Can someone please help me. >>>>>> >>>>>> Here is the error on the home page: >>>>>> C:/RoR/health/app/views/home/index.html.erb:3: syntax error, >>>>>> unexpected >>>>>> tIDENTIFIER, expecting '')'' >>>>>> ...link_to ''Login'' login_user_path(user) ).to_s); @output_buffe... >>>>>> ... ^ >>>>>> Extracted source (around line #3): >>>>>> 1: <h1>Home app/views/home/index.html.erb</h1> >>>>>> 2: >>>>>> 3: <%= link_to ''Login'' login_user_path(user) %> >>>>>> ] >>>>> >>>>> >>>>> <%= link_to ''Login'', login_user_path(user) %> >>>>> ^ >>>>> You''re actually missing a comma >>>>> >>>>> -Rob >>>>> >>>>> Rob Biedenharn agileconsultingllc.com >>>>> Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org >>>>> >>>>> >>>>> >>>>> -- >>>>> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>>> For more options, visit this group at >>>>> groups.google.com/group/rubyonrails-talk?hl=en. >>>>> >>>>> >>>>> >>>> >>>> -- >>>> View this message in context: >>>> old.nabble.com/Action-path---syntax-error,-unexpected-tIDENTIFIER,-expecting-')'-tp27395831p27396446.html >>>> Sent from the RubyOnRails Users mailing list archive at Nabble.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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 >>>> groups.google.com/group/rubyonrails-talk?hl=en >>>> . >>>> >>> >>> Rob Biedenharn agileconsultingllc.com >>> Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org >>> +1 513-295-4739 >>> Skype: rob.biedenharn >>> >>> >>> -- >>> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> For more options, visit this group at >>> groups.google.com/group/rubyonrails-talk?hl=en. >>> >>> >>> >> >> -- >> View this message in context: >> old.nabble.com/Action-path---syntax-error,-unexpected-tIDENTIFIER,-expecting-')'-tp27395831p27407824.html >> Sent from the RubyOnRails Users mailing list archive at Nabble.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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 >> groups.google.com/group/rubyonrails-talk?hl=en >> . >> > > Rob Biedenharn agileconsultingllc.com > Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org > +1 513-295-4739 > Skype: rob.biedenharn > > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > groups.google.com/group/rubyonrails-talk?hl=en. > > >-- View this message in context: old.nabble.com/Action-path---syntax-error,-unexpected-tIDENTIFIER,-expecting-')'-tp27395831p27411226.html Sent from the RubyOnRails Users mailing list archive at Nabble.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.