For some reason getting this... Any ideas? Extracted source (around line *#13*): 10: <%= link_to "Show", post %> | 11: <span class="admin"> 12: <%= link_to "Edit", edit_post_path(post) %> | 13: <%= link_to "Delete", post, method: :delete, data: {confirm: "Are you sure?"} %> | 14: </span> 15: <div> 16: </div> -- 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 To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/D1LPjZyxdlkJ. For more options, visit https://groups.google.com/groups/opt_out.
Ok, looked at the rails guides. Aparently the syntax is different from the tutorial I''m following.. they use <%= link_to ''Remove'', book, :confirm => ''Are you sure?'', :method => :delete %> How can I be sure to use the correct syntax in the future and know what changes have happened? I tried finding the notation at http://api.rubyonrails.org/ .. but failed. Possibly because I don''t know how to use it. On Monday, October 22, 2012 9:18:05 PM UTC-7, wragen22 wrote:> > For some reason getting this... Any ideas? > > Extracted source (around line *#13*): > > 10: <%= link_to "Show", post %> | > 11: <span class="admin"> > 12: <%= link_to "Edit", edit_post_path(post) %> | > 13: <%= link_to "Delete", post, method: :delete, data: {confirm: "Are you sure?"} %> | > 14: </span> > 15: <div> > 16: </div> > >-- 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 To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/i35_7iZfG8AJ. For more options, visit https://groups.google.com/groups/opt_out.
On 23 October 2012 05:27, wragen22 <bradwrage-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Ok, looked at the rails guides. Aparently the syntax is different from the > tutorial I''m following.. they use > > <%= link_to ''Remove'', book, :confirm => ''Are you sure?'', :method => :delete > %> > > > How can I be sure to use the correct syntax in the future and know what > changes have happened? I tried finding the notation at > http://api.rubyonrails.org/ .. but failed. Possibly because I don''t know > how to use it.The trick is to make sure that you are using the version of rails that the tutorial expects. Make sure the tutorial is for rails 3.n you will be wasting time if it is a rails 2 tutorial you are following. railstutorial.org is good and is free to use online. Colin> > On Monday, October 22, 2012 9:18:05 PM UTC-7, wragen22 wrote: >> >> For some reason getting this... Any ideas? >> >> Extracted source (around line #13): >> >> 10: <%= link_to "Show", post %> | >> 11: <span class="admin"> >> 12: <%= link_to "Edit", edit_post_path(post) %> | >> 13: <%= link_to "Delete", post, method: :delete, data: {confirm: "Are >> you sure?"} %> | >> 14: </span> >> 15: <div> >> 16: </div> > > -- > 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 > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/i35_7iZfG8AJ. > > For more options, visit https://groups.google.com/groups/opt_out. > >-- 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 https://groups.google.com/groups/opt_out.
Seemingly Similar Threads
- SyntaxError in Posts#index
- css background not showing
- Missing template projects/index, application/index ?
- How knows my paths in link_to? If I do not defined.
- /gems/ZenTest-4.6.2/lib/autotest.rb:315:in `load': /Users/jayparteek/.autotest:7: invalid multibyte char (US-ASCII) (SyntaxError)