https://github.com/dima4p/rails3_haml_scaffold_generator.git

On Nov 4, 5:35 am, dkuyven <[email protected]> wrote:
> I wish to create a template file which "rails g scaffold.." will use
> to create the view files.
>
> I created a file in /lib/templates/haml/scaffold/new.html.haml and the
> template file is being used, but I'm having trouble figuring out haml
> syntax for the template file.
>
> Here is the erb template file which I need to convert to a haml
> template file:
> ------------
> <h1>New <%= singular_table_name %></h1>
>
> <%%= render 'form' %>
>
> <%%= link_to 'Back', <%= index_helper %>_path %>
> ------------
>
> Can anyone help me with the syntax I need to use to get haml to insert
> the actual "singular_table_name"  and the "index_helper" into the
> generated file?

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