Target iframe from controller action

have a problem with something i thought should be really easy…

a link is targeted to an iframe in the view:

<%= link_to “test”, :controller => ‘Say’, :action => ‘hey’, :target =>
“open_here” %>

the problem is that the action just opens in the complete window and not
int the iframe. have tried with ordinary view and render :partial,
placed in the controller or in the view but doesnt work either.

could someone please tell me why.

Johan Balle wrote:

have a problem with something i thought should be really easy…

a link is targeted to an iframe in the view:

<%= link_to “test”, :controller => ‘Say’, :action => ‘hey’, :target =>
“open_here” %>

the problem is that the action just opens in the complete window and not
int the iframe. have tried with ordinary view and render :partial,
placed in the controller or in the view but doesnt work either.

could someone please tell me why.

<%= link_to “test”, {:controller => ‘Say’, :action => ‘hey’}, {:target
=> “open_here”} %>

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