That's a syntax error in your template. "f.send(attribute.field_type) 
attribute.name.to_sym" isn't valid Ruby.

- Nathan

Stephen Bannasch wrote
> At 8:06 AM -0500 9/25/07, Sean Cribbs wrote:
>   
>> On edge, Rails prefers the two-extension naming scheme, as you noted
>> earlier.  Try naming your template:
>>
>> index.html.haml
>>
>>     
>
> That didn't work. I think there may be an interference with another plugin. I 
> just tried: globalize, haml, and make_resourceful together. Haml seems to be 
> working -- the index page shows up, but I got another error.
>
> This is how I setup the test (I have edge rails checked out in he dir 
> 'external/rails'
>
> ruby external/rails/railties/bin/rails test_haml1
> cd test_haml1
> ln -s ../../external/rails vendor/rails
> script/plugin install http://svn.globalize-rails.org/svn/globalize/trunk
> script/plugin install http://svn.hamptoncatlin.com/make_resourceful/trunk
> script/plugin install http://svn.hamptoncatlin.com/haml/trunk
> rake globalize:setup
> rake db:sessions:create
> script/generate model person name:string description:text
> script/generate resourceful_scaffold person name:string description:textf two 
> continuous functions,
>   $\sin(x)$ and $xy$, so it must be continuous by (1.12).
>   Thus, $f$ is the quotient of two continuous functions
>   ($\sin(xy)$ and $x$),
>   so $f$ is continuous whenever $x \neq 0$, also by (1.12).
>
>   For $x = 0$, for any $\epsilon > 0$
>   we can choose $\delta = 
> rake db:migrate
> script/server
>
> http://localhost:3000/people/new
>
> =>
>
> SyntaxError in People#new
>
> Showing app/views/people/_form.haml where line #3 raised:
>
> (eval):19:in `compile': compile error
> (eval):13: syntax error, unexpected tIDENTIFIER, expecting kEND
> haml_temp =  f.send(attribute.field_type) attribute.name.to_sym
>                                                    ^
> Extracted source (around line #3):
>
> 1: - @person.attributes.each do |attribute|
> 2:   %p
> 3:     = f.send(attribute.field_type) attribute.name.to_sym
> Trace of template inclusion: /app/views/people/new.haml
>
> The error message references line 3 the form partial so here it i:
>
> - @person.attributes.each do |attribute|
>   %p
>     = f.send(attribute.field_type) attribute.name.to_sym
>
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
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