search for: site_controller

Displaying 4 results from an estimated 4 matches for "site_controller".

2007 Feb 08
1
undefined method `find' for Status:Class
.../app/models/page.rb:57:in `published?'' /app/models/behavior.rb:92:in `find_page_by_url'' /lib/advanced_delegation.rb:10:in `send'' /lib/advanced_delegation.rb:10:in `find_by_url'' /app/models/page.rb:72:in `find_by_url'' /app/controllers/site_controller.rb:29:in `find_page'' /app/controllers/site_controller.rb:34:in `show_uncached_page'' /app/controllers/site_controller.rb:22:in `show_page'' /vendor/rails/actionpack/lib/action_controller/base.rb:941:in `send'' /vendor/rails/actionpack/lib/action_cont...
2011 Nov 05
13
Adding a site admin user while creating a site
...------------------------- class Site < ActiveRecord::Base has_many :users, :dependent => :destroy * ########### I have added this* accepts_nested_attributes_for :users * ########### I have added this* end ------------------------------- *Here is the change i have done to the new method of site_controller.rb* ** *-----------------* * *def new @site = Site.new 1.times { @site.users.build } *############ I have added this * respond_to do |format| format.html # new.html.erb format.json { render json: @site } end end *-------------------* ** *Below is the form to which i...
2007 Mar 27
1
multi_search problems
...dor/plugins/acts_as_ferret/lib/multi_index.rb:28:in `search_each'' #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:457:in `id_multi_search'' #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:437:in `multi_search'' #{RAILS_ROOT}/app/controllers/site_controller.rb:121:in `search'' -e:3:in `load'' -e:3 The interesting part is that this only happens whenever it also finds a Page that maches the query. If it only finds Posts there''s no errors. Post is part of a has many through relation so my guess is that this could something to do...
2006 Jul 02
4
how to use upload progress?
I''m a bit confused about how to get upload progress to work with mongrel.. I''ve installed the mongrel_upload_progress (0.1) gem, but have no idea what to do with it. According to the following page: http://technoweenie.backpackit.com/pub/602283 there''s a patch (mup.diff) which seems like it patches the mongrel_upload_progress plugin The following blog entry makes it