Displaying 2 results from an estimated 2 matches for "find_company".
2006 Aug 14
1
Rest, routes, path_prefix and default params
...=> ''companies'',:action => ''index''
map.connect '':controller/:action/:id'', :id => nil, :action => ''index''
end
in application.rb, I have
class ApplicationController < ActionController::Base
protected
def find_company
@company = Company.find(params[:company_id])
end
end
And in departments_controller.rb
class DepartmentsControler < ActionController::Base
before_filter :find_company
end
In companies_controller.rb
I have
class CompaniesController < ActionController::Base
protected
def find_c...
2006 Nov 28
2
Twice the same code, but only once it seems to work
Hello,
I am confronted with a very strange problem which I can not solve... and
God I tried a lot, lost almost a whole day, but couldn''t find an answer:
The idea is to have a form both in admin and in dir, in admin there will
be some more fields that is why I have twice a form. In admin the form
appears, in dir the form does not appear instead
"þÿ
New company" why is it that the