Brilliant, I thought there must be a way of doing something
similar....

I now have my button as you suggested

<%= button_to "Remove This Model", { :action => "remove", :model_id =>
"#{this.id}" }, :confirm
=> "Are you sure?" %>

and I'm guessing that this id is now passed to my action - which leads
to my next issue...

def remove
  UserMailer.deliver_removeRequest(this)
  redirect_to "/"
  flash[:notice] = "We have been notified of your request. You will be
contacted shortly."

  end


It is in the mail delivery issue where I need to pass the id - but how
do I use params hash within my controller remove method - and more
specifically UserMailer.deliver_removeRequest(??)?

I thought 'this' would work, but It does not seem to point to
anything?

Thanks again,

getting there!

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to