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" %>
>
> <iframe name="open_here"></iframe>
>
> 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"} %>
<iframe id="open_here"
name="open_here"></iframe>
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---