Great! These are the two lines that need to be changed.
hiddens_div = element(:div, {:class => "hidden-fields"},
[http_method_hidden, page_path_hidden, auth_token, hiddens].safe_join)
body = [hiddens_div, body].safe_join
My form is displaying now, and it does save the data!. It just isnt
updating the part. I will get that bit figured out though :)
Thank you for all your help.
On Fri, Apr 15, 2011 at 6:43 AM, Bryan Larsen <[email protected]>wrote:
> Yay! Now you got an error that's easy to understand. Rails3 turns on XSS
> protection by default. To fix, just find all instances of .html_safe in
> rapid_forms.dryml/form and paste into the formlet code.
>
> Bryan
>
>
>
> On 11-04-14 11:35 PM, Matt Frost wrote:
>
>> Progress!
>>
>> Ok I removed Hobo and reinstalled everything. I changed the form line
>> in the dryml.
>>
>> My app still gets broken when i copy and paste all the code from the
>> select-one-or-new-dialog like before. However, if I remove
>>
>> <% dialog_id="hjq-dialog-#{typed_id.gsub(':', '-')}" %>
>> <% part_id = "select-one-#{typed_id.gsub(':', '-')}" %>
>>
>> and hard code id's in the rest of the form. Everything goes back to
>> working again, and now when I click on new next to my rate selection
>> box, I get the html for the form displayed inside of the box! It just
>> isnt rendering the html.
>>
>>
>>
>> On Thu, Apr 14, 2011 at 8:00 PM, Bryan Larsen <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>> On 11-04-14 03:08 PM, Matt Frost wrote:
>>
>> Its ok :) It is rather fun, except now I have to say you kinda
>> lost me.
>>
>> I am supposed to replace the view_name.sub line with
>> request.fullpath in
>> the hobo-jquery.dryml?
>>
>>
>> That's right.
>>
>>
>> When I do that it removes the rest of my buttons in my app, and
>> breaks
>> the dialog boxes.
>>
>>
>> OK, that's very strange. Would it be possible for you to recreate
>> a similar dialog within a dialog scheme on a bare app, package the
>> whole thing up and send it to me?
>>
>>
>>
>>
>> Is my rapid_forms.dryml supposed to look like that? It looks
>> like the
>> first line, not the request.fullpath.
>>
>>
>> What version of Hobo are you using? Hobo 1.3 has request.fullpath
>>
>>
>> https://github.com/tablatom/hobo/blob/rails3/hobo/lib/hobo/rapid/taglibs/rapid_forms.dryml#L226
>>
>> Bryan
>>
>> --
>> 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]
>> <mailto:[email protected]>.
>>
>> To unsubscribe from this group, send email to
>> [email protected]
>> <mailto:hobousers%[email protected]>.
>>
>> For more options, visit this group at
>> http://groups.google.com/group/hobousers?hl=en.
>>
>>
>> --
>>
>> 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.
>>
>
> --
> 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.
>
>
--
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.