Displaying 4 results from an estimated 4 matches for "items_path".
2009 Mar 09
4
undefined method `symbol_path'
I am getting following error while creating a new topic using RESTful
design. But, everything works fine when I use <% form_tag :action =>
:create do %> .
ActionView::TemplateError (undefined method `symbol_path'' for
#<ActionView::Base:0xb72a2e40>) on line #3 of topics/new.rhtml:
1: <h1>New Topic</h1>
2:
3: <% form_tag :topic, :url => topics_path do %>
2010 Dec 27
4
Crazy routes
...how its features.
In my routes file I have:
map.namespace :admin do |admin|
map.resources :items, :controller => "admin/items", :path_prefix =>
''admin''
end
map.resources :items
In my views I have:
<%= link_to ''<b>Items</b>'', items_path %>
The link_to always redirect to admin/item/index (except if I change the
order in routes.rb, if I do always redirect to item/index).
Is it possible to redirect admin/item/index when user is logged in and
redirect to item/index when user is not logged in?
Thanks
--
Posted via http://www.ru...
2009 Feb 26
8
beginners question
...39;jid'',
:name => ''jname'' }) %></td>
</tr>
</table>
<%= f.submit "change" %>
<% end %>
<%= link_to ''show'', @item %> |
<%= link_to ''back'', items_path %>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group,...
2008 Dec 19
14
Can duplicate "back" browser function in Rails?
In Rails I have a DB Table index.html.erb view. It has 100''s of items.
When I gen via scaffold I get index, show, edit, update, etc view.
But when I page down several pages, use the "show" link and then the
"back" link I do not go back to where I was on the index view.
Instead, I go back to the TOP of the index not the place where I clicked
on the "show"