In general, this sort of thing should either be in one line or in a Helper.
def render_help_list
render_component(
:controller => 'help',
:action => 'list',
:params => 1)
end
= render_help_list
and obviously if one of those is something that changes, pass it in as an arg.
If you *reallllly* love code in your views, then you can create a 'wall'.
= render_component( |
:controller => 'help', |
:action => 'list', |
:params => 1) |
Its a bit awkward on purpose. Haml really pushes that your views
should look like Haiku.
-hampton.
On 2/15/07, Daniel <[EMAIL PROTECTED]> wrote:
>
> Beautiful!! I unzipped the files into the vendor/plugins folder and
> voila! it's working now. Thanks to all.
>
> Now, I am facing one last issue. I noticed that commands typed in the
> following fashion generate an error, is there a workaround?
>
> = render_component(
> :controller => 'help',
> :action => 'list',
> :params => 1
> )
>
> Thanks again,
>
> Daniel
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---