The line should say:
<%= link_to "accept", model_path(@somevariable, :height =>300, :width
=>300), {:class => 'thickbox'} %>
and the controller obviously should somehwere say:
render :partial => 'your/content'
That was easy.
On 16 Feb., 14:41, "[email protected]"
<[email protected]> wrote:
> I was having problems to get thickbox to work with a normal REST
> action:
>
> for example:
>
> I have link somewhere where I want to load the result of a create
> method into the thickbox
>
> <%= link_to "accept", model_path(@somevariable, :height =>300, :width
> =>300) %>
>
> Lets say a very simple controller does something in there
>
> def index
> ... do something in here
> end
>
> It be default forwards to index.html.erb
>
> Now what I get is the thickbox shows up and pretends to load the
> content, but then rails takes over and automatically forwards me to
> index.hml.erb
>
> Any Ideas how to overcome this ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Lovd by Less" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/lovdbyless?hl=en
Who loves ya baby?
-~----------~----~----~----~------~----~------~--~---