Have you restarted the server?

Stephen Bannasch wrote:
> I've got a problem getting haml to render with a project with rails 
> edge (r7514) and in testing below I have a different bug when testing 
> in a brand new app with edge r7611.
>
> Yesterday I spent hours taking the mess I had made of the css and 
> redoing it with sass -- that worked out great!
>
> I'm trying to get haml to work and I appear to have a very basic problem.
>
> Right now I've got these plugins installed in the app I'm working on:
>
>      acts_as_list      globalize     make_resourceful     
> restful_authentication
>      attachment_fu     haml          responds_to_parent   widgets
>
> The tutorial here: http://haml.hamptoncatlin.com/tutorial states:
>
>    Secondly, Haml is a drop-in replacement for Rhtml. So, that means
>    any file in your app/view/* folder can be switched over to the
>    Haml interpreter by simply changing the extension of the file.
>
> So I changed the name of an existing erb index view file from:
>
>    view/posts/index.html.erb
>
> to:
>
>    view/posts/index.haml
>
> And the page loaded -- so far so good.
>
> I then inserted a line of haml into the erb template:
>
>    %p= @post.name
>
> And when I rendered the page the haml markup appeared unchanged.
>
> I actually got to this simple place after trying out the generator in 
> make_resourceful. I couldn't get the haml markup to be interpreted so 
> I started simplifying things.
>
> I did get it haml and make_resourceful working starting from scratch 
> with a new rails 1.2.3 app:
>
>    $ rails test
>    $ cd test
>    $ script/plugin install http://svn.hamptoncatlin.com/make_resourceful/trunk
>    $ mv vendor/plugins/trunk/ vendor/plugins/make_resourceful
>    $ script/plugin install http://svn.hamptoncatlin.com/haml/trunk
>    $ mv vendor/plugins/trunk/ vendor/plugins/haml
>    $ script/generate model person name:string description:text
>    $ script/generate resourceful_scaffold person name:string description:text
>    $ script/server
>
>    http://localhost:3000/people
>
> Any ideas on what I should investigate?
>
> Thanks
>
> >
>
>   


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