rubyonrailsin

A Ruby and Rails talk

Sunday, March 21, 2010


Re: [Rails] Re: Using ActionMailer on a controller method

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

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

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive