Hi,
I can't understand how to do "hobo way" the insertion of a New form
into a modal window.
I need to send an email by clicking on a link on the customers card, I
explain better: from the index of the customers controller, I see the
cards for all my customers, if I click on that link explained above, I
expect to see the new form for that sent_emails controller (that
stores all sent emails and actually sends them), I'm using modal-
overlay for seamless integration of this feature in rails, whenever I
click on the link, that mechanism almost works, I'm presented with the
modal window filled with the new page.. but the complete new page,
with all the layout, is there a way not to have the layout, but just
the form? without hob I would do (for sent_emails controller):
def new
@sent_email = SentEmail.new
respond_to do |format|
format.html
format.js {render :action => "new.html.erb", :layout => false}
end
end
but I can't understand how to specify that :layout => false bit in
hobo way...
i tried with:
def new
@sent_email = SentEmail.new
hobo_new @sent_email do |format|
format.html
format.js {render :action => "new.dryml", :layout => false}
end
end
but it's still showing me the complete page inside the modal window,
not just the form.
Thank you.
G.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo
Users" 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/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---