search for: admin_items_path

Displaying 2 results from an estimated 2 matches for "admin_items_path".

2010 Dec 27
4
Crazy routes
Hello! I''m using restful_authentication and I would like to have diferent views for logged users and not logged users. Logged users can edit and create items, and not logged user could only list items and show its features. In my routes file I have: map.namespace :admin do |admin| map.resources :items, :controller => "admin/items", :path_prefix =>
2011 Jan 03
2
Adding style to model (paperclip)
...ollers/admin/items_controller.rb:64:in `update'' app/controllers/admin/items_controller.rb:63:in `update'' Controller code: def update @item = Item.find(params[:id]) respond_to do |format| if @item.update_attributes(params[:item]) format.html { redirect_to(admin_items_path, :notice => ''OK'') } else format.html { render :action => "edit" } end end end If I remove the new style (:large) in item.rb everything works fine again... Could someone help me? Thanks -- Posted via http://www.ruby-forum.com/. -- Yo...