search for: articles_control

Displaying 7 results from an estimated 7 matches for "articles_control".

2006 Apr 27
2
problematic admin/views
...views for the controllers in the admin zone, here you can see my file structure: http://img284.imageshack.us/my.php?image=tmpviews6oq.gif and my admin controllers like this: controllers/admin/admin_controller.rb class Admin::AdminController < ApplicationController ... end controllers/admin/articles_controller.rb class Admin::ArticlesController < Admin::AdminController ... end both works fine, the problem are the views, for example the controllers/articles_controller.rb takes the view from views/layouts/articles.rhtml no problem, so the controllers/admin/articles_controller.rb should take the v...
2006 Jan 13
1
ActiveRecord: using with multiple threads/DB connections
...m_column_definition'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1185:in `initialize_without_callbacks'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/callbacks.rb:236:in `initialize'' ./script/../config/../app/controllers/articles_controller.rb:19:in `new'' ./script/../config/../app/controllers/articles_controller.rb:19:in `new'' ******************************** Mysql::Error in Articles#list Lost connection to MySQL server during query RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full...
2006 Aug 13
0
Controller Inheritance/Namespacing
Hi all, Just a quick one... I created an admin controller which I want to use as a hub for admin tasks.... I then did: ruby script/generate controller admin::articles Now I can only access actions from admin/articles_controller.rb if there is no /admin_controller.rb... if I create the admin_controller and go to: /admin/articles/list I get the unknown action response. Any ideas what is going on there? it seems that having the parent controller file stops rails looking for actions in my sub-controllers... Thank...
2010 Dec 15
5
Having trouble testing :( "superclass mismatch" and can't load "test_helper"
...om C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:31:in `require'' from article_test.rb:1 C:\Users\Family\workspace\jdrampage\test\unit>cd.. C:\Users\Family\workspace\jdrampage\test>ruby unit/article_test.rb C:/Users/Family/workspace/jdrampage/app/controllers/ articles_controller.rb:1: superclass mismatch for class ArticlesController (TypeError) from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/ active_support/dependencies.rb:239:in `require'' from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/ active_support/dependencies....
2011 Mar 11
12
A file-upload suddenly seems to be nil
...worked great. Now that I created the association there seems to be a problem with params[:file]. I keep getting a NoMethodError: You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occurred while evaluating nil.delete app/controllers/articles_controller.rb:95:in `upload'' where line 95 is @article.uploads.create(params[:file]) if I remove the parameter no errors get thrown. But the console tells me params[:file] DOES exists and has proper values. Also params[:file] worked great before I used the has_many association. I have no clue...
2006 Jul 24
7
[PATCH] Support for DB Clusters/Replication in ActiveRecord (RFC)
Skipped content of type multipart/alternative-------------- next part -------------- Index: connection_adapters/abstract/connection_specification.rb =================================================================== --- connection_adapters/abstract/connection_specification.rb (revision 4617) +++ connection_adapters/abstract/connection_specification.rb (working copy) @@ -1,10 +1,21 @@ require
2008 Jun 06
3
LoadError (Expected model.rb to define Model)
...rt/lib/active_support/dependencies.rb: 465:in `const_missing'' /vendor/rails/activesupport/lib/active_support/dependencies.rb: 260:in `load_missing_constant'' /vendor/rails/activesupport/lib/active_support/dependencies.rb: 469:in `const_missing'' /app/controllers/articles_controller.rb:12:in `index'' /vendor/rails/actionpack/lib/action_controller/base.rb:1158:in `send'' /vendor/rails/actionpack/lib/action_controller/base.rb:1158:in `perform_action_without_filters'' /vendor/rails/actionpack/lib/action_controller/filters.rb:697:in `call_fil...