search for: paulsturgess

Displaying 11 results from an estimated 11 matches for "paulsturgess".

2006 May 03
3
Graceful degrading AJAX show/hide
...ed_search" %> </div> I believe in my controller I can use if !@request.xhr? to check if it''s an ajax request. The problem I have is how to refresh the page the user is on and not use the rjs file. Any help, much appreciated. Paul. -- _________________________ http://www.paulsturgess.co.uk
2006 Apr 12
5
File upload doesn''t work in production mode
...9; /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/fcgi_handler.rb:53:in `process!'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/fcgi_handler.rb:23:in `process!'' /var/www/html/hjplaw.co.uk/current/public/dispatch.fcgi:24 -- _________________________ http://www.paulsturgess.co.uk
2006 Jul 15
1
Trouble using date_select with blank options
...h'', :order => [:day, :month, :year], :include_blank => true %> There''s no validation in the model and the databse field is set to allow null values. If someone could help me out here it would be most appreciated, Thanks, Paul. -- _________________________ http://www.paulsturgess.co.uk
2006 Apr 07
0
validates_acceptance_of problem
...and conditions</a></label> <%= f.check_box :agree_to_terms, ''class'' => ''smallinput'' %> If anyone could shed some light on what i''m doing wrong it would be greatly appreciated. Thanks, Paul. -- _________________________ http://www.paulsturgess.co.uk
2007 Feb 27
0
Error Installing MySQL Native Bindings with DarwinPorts
...ncountered a MySQL error when trying to install. Would appreciate any insight any of you might be able to offer to resolve this. I''m trying to install the MySQL Native Bindings for a performance boost on the MySQL adaptor. The specific tutorial I''m following is as follows: http://paulsturgess.co.uk/articles/show/46 Many thanks in advance. Here''s an output of my terminal session: Anthony-Bakers-Computer:/opt AnthonyBaker$ sudo mysql_install_db5 --user=mysql sudo Installing all prepared tables /opt/local/libexec/mysqld: Too many arguments (first extra is ''sudo'...
2010 Mar 18
8
hash in controller is nil after submitting form
I''m trying to create a data entry form but getting an error when it sumbmits. I am using an hash to get the names of the fields definied in the controller''s "new" function: def new @thing = thing.new @columns = Hash.new @columns[''thing_general''] = [ ["title","name"],
2006 Apr 11
4
wrong number of arguments (2 for 1)
...tment.find(:all, :conditions => ["permalink = ?", department]) @department = @departments.find(:all, :conditions => ["category = ?", category]) If anyone could shed some light on this it would be greatly appreciated. Thanks, Paul. -- _________________________ http://www.paulsturgess.co.uk
2007 May 10
6
Where put buissness logic?
I''ve always think that it belongs to controller but I''ve read few articles that it should be done by model and controller should be thin glue betwean model and view. Where should I put it? Regards -- I''ve probably left my head... somewhere. Please wait untill I find it. Homepage (pl_PL): http://uzytkownik.jogger.pl/ (GNU/)Linux User: #425935 (see
2009 Dec 25
18
rescue_from ActionController::RoutingError II
OK ... so I''m not supposed to use it but ... Why doesn''t rescue_from ActionController::RoutingError work witht he code from http://www.rubyplus.org/episodes/20-Extended-RESTful-Authentication-Rails-2-App.html class ApplicationController < ActionController::Base helper :all # include all helpers, all the time # See ActionController::RequestForgeryProtection for details
2006 Feb 25
0
Simple file upload help
I''m trying to implement the simple file upload example at http://wiki.rubyonrails.com/rails/pages/HowtoUploadFiles However, I''m getting an error "No such file or directory" when I submit the form... Errno::ENOENT in Admin/websites#create No such file or directory - /images/websites/websitename.jpg I believe it''s relating to the code in the model: def
2006 Mar 14
2
no such file to load -- login_system
I''m hoping someone can help me out here. My application works fine locally using webrick. One I upload to my shared server space I get an application error saying rails has failed to start. The log file production.log reads as follows: MissingSourceFile (no such file to load -- login_system): /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__''