The value of @ticket is represted as an array of all the attributes of
the ticket itself.

I just realized that. I had to change my link_to arguments just
slightly...

On Mar 21, 3:38 pm, Michael Pavling <pavl...@gmail.com> wrote:
> On 21 March 2010 21:29, command0 <justinbrinkerh...@gmail.com> wrote:
>
> > I have:
>
> > map.resources :tickets, :has_many => [:notes, :comments]
>
> > In routes.rb.
> >> > 5: You can view your ticket at <%= link_to @ticket %>.
>
> Okay,
> So when we get to line 5 of app/views/ticket_mailer/newticket.erb,
> you're passing the @ticket variable to the link_to helper... so what's
> the value of @ticket at this stage? Is it actually a "Ticket" object,
> or is it Nil?

-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to