[Rails] How to use previous project Gemfile?

2011-04-02 Thread slindsey3000
I want to set up a new project and use all the gems in a previous project in their current state in that project. What should I do to make this happen? Do I just copy and paste the Gemfile.lock over to the new project Gemfile.lock? Thanks! Shawn -- You received this message because you are

[Rails] Ever changing environment... stop it??

2011-04-01 Thread slindsey3000
Hi all... relative new guy I am a new rails developer but am working as hard as I can to become competent. What are your best practices for locking down an environment to develop projects in? I want to set up a server and also a local environment then build projects for ... say... 6 months

[Rails] Re: RVM and Rails

2011-02-01 Thread slindsey3000
a .rvmrc for this project. It just seems odd to me to have to keep doing gem install rails... I feel like I am missing something? Shawn On Jan 31, 9:00 pm, Philip Hallstrom phi...@pjkh.com wrote: On Jan 31, 2011, at 5:48 PM, slindsey3000 wrote: Hi I am wondering what is the best practice

[Rails] RVM and Rails

2011-01-31 Thread slindsey3000
Hi I am wondering what is the best practice for using gemsets with rails projects. What is the correct workflow for developing multiple rails3 projects each with its own gemset. SPECIFICALLY I am not sure where I do a gem install rails when I will have more than one rails project. Do I need to

[Rails] Re: ActiveRecord errors ... Best way to rescue a live web application?

2010-08-15 Thread slindsey3000
::ActiveRecordError, :with = :method_name private   def method_name     redirect_to your_path   end end - Original Message - From: slindsey3000 slindsey3...@gmail.com To: Ruby on Rails: Talk rubyonrails-talk@googlegroups.com Sent: Thursday, August 12, 2010 10:34 AM Subject: [Rails] ActiveRecord

[Rails] ActiveRecord errors ... Best way to rescue a live web application?

2010-08-11 Thread slindsey3000
Hi all, I have some issues when a link is clicked twice quickly that deletes an ActiveRecord row. All I really want to do is set up some universal catch that will redirect all application errors to index. Best way? Thanks! Shawn -- You received this message because you are subscribed to the

[Rails] redirect_to ... re-directing to the action you are currently in.

2010-06-21 Thread slindsey3000
I am banging my head against a wall here. I am in index in index I check if it was the first time index has been called for the app. if so I make some changes to the db and redirect_to right back to index. But... all heck seems to break loose. It seems when I redirect_to it just kinda

[Rails] ActionMailer or alternatives in Rails 2.X

2010-06-10 Thread slindsey3000
I am developing in Rails 2.X (I forget the latest release!) Anyway. I need to incorporate email capability to my app. Is actionmailer the way to go or is there a plugin that is better. It seems quite easy and straightforward. I have already created some simple functionality with actionmailer.

[Rails] Re: ActionMailer or alternatives in Rails 2.X

2010-06-10 Thread slindsey3000
Is that done just in environment.rb? On Jun 10, 8:08 am, Frederick Cheung frederick.che...@gmail.com wrote: On Jun 10, 2:58 pm, slindsey3000 slindsey3...@gmail.com wrote: Everything seems to work fine but no emails are actually sent from development mode... How can I get it to actually send

[Rails] Re: install acts_as_textiled

2010-06-07 Thread slindsey3000
Yes! On Jun 5, 1:52 pm, Ugis Ozols ugis.ozo...@gmail.com wrote: There's a workaround -http://groups.google.ca/group/rubyonrails-talk/browse_thread/thread/2... - last post by Ahmed Mohamed. On Jun 5, 11:34 pm, slindsey3000 slindsey3...@gmail.com wrote: I have git installed on my windows

[Rails] install acts_as_textiled

2010-06-05 Thread slindsey3000
I have git installed on my windows machine. Am typing ruby script/plugin install git://github.com/defunkt/acts_as_textiled.git In my vendor/plugins directory it shows acts_as_textiled. However, there are no files in the folder and obviously when I run rails I get undefined method

[Rails] Re: Multiple Models in one form

2010-05-24 Thread slindsey3000
Thanks all! On May 8, 4:03 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote: slindsey3000 wrote: I have had the worst time getting my forms to accept input for more than one model.  I tried using accepts_nested, and other techniques and finally got it all working.  But it was not fun. I

[Rails] Multiple Models in one form

2010-05-07 Thread slindsey3000
I have had the worst time getting my forms to accept input for more than one model. I tried using accepts_nested, and other techniques and finally got it all working. But it was not fun. I never did get accepts_nested working! I do need more experience. I did hit upon one idea that I just

[Rails] Netbeans error?

2010-05-03 Thread slindsey3000
History... before it went to heck... I have been working a project in Netbeans for a month. I did a gem update outside of Netbeans while I was installing ImageMagick and RMagick... I also had to remove one verson of ImageMagick to use the one compatible with RMagick. Everything was working

[Rails] Netbeans - Malformed version number string mswin32 (ArgumentError)

2010-04-30 Thread slindsey3000
History... before it went to heck... I have been working a project in Netbeans for a month. I did a gem update outside of Netbeans while I was installing ImageMagick and RMagick... I also had to remove one verson of ImageMagick to use the one compatible with RMagick. Everything was working

[Rails] Create animated gif from images in DB ...

2010-04-28 Thread slindsey3000
Hi all anyone got an idea of how to create an animated gif using images uploaded in paperclip? OR some way to display rotating images in rails. (i'm trying to create rotating sponsor images on the fly from user uploads) Thanks, Shawn -- You received this message because you are subscribed

[Rails] params[hash] and link_to.... easy question... but I am stupid :)

2010-04-13 Thread slindsey3000
routes.rb map.connect ':controller/:action/:id/:draw_id', :controller = admin, :action = edit_position In a view I have: %= link_to #...@draw.positions[0].team}, { :controller = :admin, :action = :edit_position, :id

[Rails] Re: params[hash] and link_to.... easy question... but I am stupid :)

2010-04-13 Thread slindsey3000
... On Apr 13, 4:54 pm, Craig White craigwh...@azapple.com wrote: On Tue, 2010-04-13 at 16:44 -0700, slindsey3000 wrote: routes.rb  map.connect ':controller/:action/:id/:draw_id', :controller = admin, :action = edit_position In a view I have: %= link_to #...@draw.positions[0].team

[Rails] Re: params[hash] and link_to.... easy question... but I am stupid :)

2010-04-13 Thread slindsey3000
, :draw_id = @draw.id On Apr 13, 7:00 pm, slindsey3000 slindsey3...@gmail.com wrote: It is not in my params hash though I initially did nothing with my routes.rb... then seeing that the only param I got was :id, I started playing around. can anyone give me an example of a link_to

[Rails] Re: accepts_nested_attributes_for - issue

2010-03-28 Thread slindsey3000
Yes, you are correct. Terrible naming. But was done to try quick example. I am creating new player so @cpr it won't find player because I am in fact creating one. I know... terrible code. It seems to be looking for Active Record object and I am passing in array... Help! On Mar 28, 6:08 am,

[Rails] accepts_nested_attributes_for - issue

2010-03-27 Thread slindsey3000
Just trying a simple example to try to get nested to work... but can't get it! Been 2 days! Please help. VERY SIMPLE controller, view, models... listed below. --ERROR MESSAGE--