In Rails Can we pass a parameters to a new Action

Posted by fenec on Stack Overflow See other posts from Stack Overflow or by fenec
Published on 2010-05-16T02:04:05Z Indexed on 2010/05/16 2:10 UTC
Read the original article Hit count: 350

Filed under:
|
|

i would like to write a message using an instince variable in the new invition action like this. redirect_to new_invitation_path("invite your friend")

Controller invitations:

def new(message)
 @message = message
 @from_user_id = facebook_session.user.to_s
end

Apparently it is not possible how can i find a way around this?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about ruby-on-rails