search for: dionhewson

Displaying 19 results from an estimated 19 matches for "dionhewson".

2006 Jul 23
8
destroy vs delete
what is the difference between destroy and delete in AR I am not sure what they mean by "Destroys the record with the given id by instantiating the object and calling destroy<http://api.rubyonrails.com/classes/ActiveRecord/Base.html#M000866>(all the callbacks are the triggered). If an array of ids is provided, all of them are destroyed." in
2006 Aug 09
0
Re: association does not get foreign key
On 8/10/06, Dion Hewson <dionhewson@gmail.com> wrote: > > I have a 1 to 1 relationship using a similar example as below (has_one, belongs_to) > > but when I do the save, the foreign key of the child object is not set to the id of the parent object in the relation ship > > > any ideas? > > cheers > &g...
2006 Aug 16
1
absolute default route in routes.rb
how do you set a default route in routes.rb so that anything not recognised will default to :controller => ''home'' map.connect ''*'', :controller => "home" does not work so well cheers -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 Sep 05
8
Hi..Guys new plugin again
Hi.. Guys new plugin again Foreign Key Associations is a plugin that automatically creates associations based on foreign-keys. The associations are created at runtime-ie. as your ActiveRecord models are loaded-so they will always be up-to-date. For example, given a foreign-key from a customer_id column in an orders table to an id column in a customers table, the plugin creates:
2006 Aug 09
0
association dows not grt foreign key
I have a 1 to 1 relationship using a similar example as below (has_one, belongs_to) but when I do the save, the foreign key of the child object is not set to the id of the parent object in the relation ship any ideas? cheers dion --------------------------------- class Person < ActiveRecord::Base has_one :address validates_presence_of :email --------------------------------- end
2006 Aug 10
0
quickk fix for engine on dreamhost with 1.1.5
HI all this is a quick fix to get you rails app running on dreamhost if engines has stopped since the 1.1.5 upgrade comment out line 6 and 7 in vendor\plugins\engines\lib\engines\engines.rb as the require ''rails_version'' will give you an error like /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'': no such file to load -- rails_version
2006 Aug 16
0
Beta testers needed for RoR site
Blogsaic.com is great new blog advertising site that uses images instead of a text description to advertise the purpose of the blog. http://www.blogsaic.com/ this site is in early development and needs beta testers to help develop the sites content. Content is user generated as opposed to using search bots, to ensure that only useful and entertaining blogs are listed. cheers for all and any
2006 Aug 18
0
call for help
to test new Rails site at http://www.blogsaic.com/ signup and help in the design phase of a new rails site... blogsaic is a great way to drive traffic to yoursite too if thats all your after but it really needs some loading, while I work on the stats system cheers dion -- www.blogsaic.com search, post, blog -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Nov 04
0
google ig
has anyone written a google ig gadget using their rails apps? cheers dion -- www.blogsaic.com search, post, blog -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060821/213ecd03/attachment-0001.html
2006 Jul 10
0
ssh issues with capistrano
Hi all, I am trying to deploy my rails app on my remote host to another subdomain on the same remote host e.g from staging.mydomain.com to live.mydomain.com but I can''t get ssh to authenticate in capistrano when I run >> rake remote:exec ACTION=setup --trace (of cap-a setup) I get this error: [DEBUG] 2006-07-09T20:44:20.189599 -- userauth.driver: all authorization methods
2006 Jul 12
1
Test for file_column
hi all, has any one had experience writing a test for file_column I can write a test for testing the data in the form, but am not sure how to test against the image any tips? cheers dion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060712/08f7996a/attachment.html
2006 Jul 23
1
reaper
Hi there, I have been running the reaper on dreamhost and I''m not sure it is actually restarting the processes will the reaper create new processes? because all the PID''s are the same before and after I run the reaper Restarting [1344] ruby dispatch.fcgi Restarting [10172] ruby dispatch.fcgi Restarting [21592] ruby dispatch.fcgi Restarting [4931] ruby dispatch.fcgi Restarting
2006 Jul 24
1
upload progress
what is the best method for adding upload progress functionality there are the fcgi and mongrel plugins... but is there an HTTP Server agnostic way of doing upload progress stats cheers dion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060724/7c477b9c/attachment-0001.html
2006 Jul 26
0
validates_presence_of in upload_progress plugin
Hi there, I have implemented the upload_progress plugin which ajaxified my form_tag and works as expected(ish) and now I find that my validations do not work i.e validates_presence_of etc etc has anyone seen this before or know the work around cheers dion -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jul 26
0
validates_presence_of broken
I have implemented the upload_progress plugin which ajaxified my form_tag and works as expected(ish) and now I find that my validations do not work i.e validates_presence_of etc etc has anyone seen this before or know the work around cheers dion -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jul 29
0
validations not run till after action in controller is called
Hi there I am uploading data and images in a form and I am trying to validate the url of the img before it is uploaded and the record is saved... the controller works fine when the url is valid but while trying to test invalid url''s I found that the validations are not run until the end of the action is there a way to run validations on a post before the action is called? cheers
2007 Sep 25
1
attachment_fu + SWFupload via activeupload
hi there, I am using the activeupload <http://code.google.com/p/activeupload/> plugin with attachment_fu and keep getting "406 Not Acceptable" errors when I try and upload a file, is there anything magic I need to do to get these to work? I also get AttachmentsController: missing default helper path attachments_helper but rails freaks out when I put "include
2006 Nov 04
0
adding an association to the logine_engine user model
How do you add associations to the User model when using the login_engine?? I have found that if I use my own User class in models/user.rb I will have to overwrite all the functions in the login_engines model this seems a redundat waste... but I need to add a has_one association to my User like so: class User < ActiveRecord::Base has_one :tile_stat, :dependent => :destroy end any
2006 Jul 19
2
best practice deployment
what is the best method to deploy from a development machine to production when you need slightly different files for each mode do you use TWO files such as db.yml.dev and db.yml.prod and use capistrano to deploy one or the other to database.yml or is it better to have one file and use conditions in your file such as <% if ENV[''RAILS_ENV''] = "production" %>