Okay, good, so the problem wasn't with Haml. That's always nice to know.

- Nathan

jmay wrote:
> There's no additional trace information in the log, just the warning.
> Is there an option to turn on full backtraces for warnings?  That
> would certainly help identify the source of the problem.
>
> The code snippet I provided was from lib/haml/helpers/
> action_view_mods.rb in the plugin, around line 50.
>
> You are correct that this is a form call, specifically form_remote_tag
> (I took out the '_remote' and it still have the same warning).  Here's
> my code:
>
> - form_remote_tag(:update => "source_title", :url => {:action =>
> 'update_title'}) do |f|
>   %p
>     %label Title:
>     = text_field :source, :title, :size => 80
>     = submit_tag "Do AJAX Update"
>
> Now I see the problem.  I just copied the "|f|" part from somewhere,
> but it doesn't seem to be needed here.  If I take it out there error
> disappears.  And if I leave it in and try to use "f.text_field" then I
> get a "trying to evaluate nil" error.  Not sure where I got that |f|
> business from in the first place.
>
> Thanks,
> -Jason
>   

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" 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/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to