Monday, November 15, 2010

[Rails] How to get lightbox on mouse over of the link in rails

Hi ,

i am very new to ROR


How to a mouse over light box thing in this link_to .

I tried by getting a lightbox on Click of a button by

<%= pop_up @blog %>

where i added a action in blogs controller
def pop_up
render :partial => 'shared/pop_up', :layout => false, :locals =>
{:node => @blog}
end

and a action pop_up in aplication_helper

and kept a pop_up file under shared folder.

The above thing works fine on click of the button


How to get the same lightbox thing on mouse over of the link
<%= link_to "User", @blog.user %>

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate