----------------------------------------------------------
<%= yield_or_default(yield(:sidebar)) %>
-----------------------------------------------------------
In app/views/users/index.rhtml you should set the content for rightcolumn for the users page like below
-----------------------------------------------------------
<% content_for :sidebar do -%>
Sidebar
- Add your photos
- View your galleries
- <%= link_to "Log in", login_url %> Login
<% if logged_in? %>
<% else %>
<% end %>
<% end -%>
-----------------------------------------------------------
In In app/views/movies/index.rhtml you should set the content for rightcolumn for this movies page like below
-----------------------------------------------------------
<% content_for :sidebar do -%>
some movies related information you can place here
<% end -%>
-----------------------------------------------------------
No comments:
Post a Comment