I am having trouble with this piece of code. It does not open a popup
window. If I put curly braces around the controller and action part I
get a popup but the varible username does not get passed. Can anyone
help me out, Im running rails 2.0.2.

<%= link_to trip.user.username, :controller => :page, :action =>
:sendmail, :popup => [‘Contact User’, ‘height=600,width=800’],
:username => trip.user.username %>

NW, here is the solution.

<%= link_to trip.user.username, { :controller => :page, :action =>
:sendmail, :username => trip.user.username }, :popup => true %>


<%= link_to trip.user.username, { :controller => :page, :action =>
:sendmail, :username => trip.user.username }, :popup => [‘Contact User’,
‘height=600,width=800’] %>

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs