I should mention that I am making these functions myself... to use in
a view

Is there something I need to do to get the function working as a model
method in  a "do" block?



On Feb 16, 4:48 pm, "rails.n...@gmail.com" <rails.n...@gmail.com>
wrote:
> hey
>
> I am able to do:
>
>      block_func(x, y) do
>       ....
>      end
>
> But if I try to do this:
>
>      form.block_func(x, y) do
>       ....
>      end
>
> I get an error like this:
>
>       syntax error, unexpected ')'
>       @output_buffer.concat "    "; @output_buffer.concat
> (( form.block_func(x, y) do ).to_s);
>       @output_buffer.concat "\n"
>
> Any ideas?
>
> thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to