There is no one best way of creating menus, because people's needs vary.

One simple example of creating menu you can find here:
https://github.com/bigos/openshift-chrisbim/blob/master/app/views/layouts/application.html.haml

line 26:   = render :partial => 'layouts/navbar'


Then in partial I had following code:
https://github.com/bigos/openshift-chrisbim/blob/master/app/views/layouts/_navbar.html.haml

And this is relevant css:
https://github.com/bigos/openshift-chrisbim/blob/master/app/assets/stylesheets/style.css.scss
Please have a look at likes 57 to 72

Jacek

On Tuesday, 16 April 2013 14:50:52 UTC+1, Ruby-Forum.com User wrote:
>
> Hey 
>
> Better way for creating menu in rails,
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/q2-0sJtf-WkJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to