[Rails] Re: captcha issue

2012-01-29 Thread sachin kewale
On Tue, Jan 24, 2012 at 6:06 PM, sachin kewale wrote: > hi all, >i have captcha image on Registration popup but on local the captcha > image and code is not coming. >i have install RMagick and gd2 gem also.It gives following error, > > MissingSourceFile (no such file to load -- GD): >

[Rails] how to use Paperclip alone with a separated attachment model

2012-01-29 Thread Bo Zhao
I have a scenario that my user need to upload a image first and then assign to another model, so I used a generic model, to upload the file first. But I always get a exception of ActiveRecord::UnknownAttributeError (unknown attribute: utf8). because rails automatically adds a utf-8 field for the fo

[Rails] Re: data is storing in database when i had created but it is destroyed after the sign out

2012-01-29 Thread Neethu Satheesh
Try following this thread, I have not it read completely. It may help you. http://www.ruby-forum.com/topic/3233401 - Neethu -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this grou

[Rails] Re: data is storing in database when i had created but it is destroyed after the sign out

2012-01-29 Thread Neethu Satheesh
Try following this thread, I have not it read completely. It may help you. - Neethu -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@google

[Rails] Re: data is storing in database when i had created but it is destroyed after the sign out

2012-01-29 Thread Kapil Kaligotla
Hi, Thanks for your quickest response, i had added the self.save but i am getting error as "stack level too deep" on submitting the profile form Thanks, Kapil On Jan 30, 11:03 am, Neethu Satheesh wrote: > Hi Kapil, > > Please try with self.save in your methods build_cell & build_telephone. >

[Rails] Re: data is storing in database when i had created but it is destroyed after the sign out

2012-01-29 Thread Neethu Satheesh
Hi Kapil, Please try with self.save in your methods build_cell & build_telephone. Eg : def build_cell self.mobile = "#{self.code1}-#{self.number1}" self.save end Thanks, Neethu -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Go

[Rails] data is storing in database when i had created but it is destroyed after the sign out

2012-01-29 Thread Kapil Kaligotla
I had created users using devise in rails. I am storing user mobile number and land line number for the user profile, by using this code it is storing the cell and land line numbers in database but after the sign out it is not stored in the database. please tell me whats wrong in my code in users.r

[Rails] Re: Reaching into a has_and_belongs_to_many - will :through work?

2012-01-29 Thread rwz
Also, try this: has_many :users, :through => :campaigns, :source => :users On Jan 30, 10:52 am, Duane Morin wrote: > Hi.  I'm hoping somebody can tell me that I've just gotten my syntax > wrong and I can in fact do what I want to do. > > I've got a Group, and a Group has_many Campaigns. > > Campa

[Rails] Re: Reaching into a has_and_belongs_to_many - will :through work?

2012-01-29 Thread rwz
What version of rails do you use? This setup works fine for me on 3.1.3 and 3.2.1 On Jan 30, 10:52 am, Duane Morin wrote: > Hi.  I'm hoping somebody can tell me that I've just gotten my syntax > wrong and I can in fact do what I want to do. > > I've got a Group, and a Group has_many Campaigns. >

[Rails] Reaching into a has_and_belongs_to_many - will :through work?

2012-01-29 Thread Duane Morin
Hi. I'm hoping somebody can tell me that I've just gotten my syntax wrong and I can in fact do what I want to do. I've got a Group, and a Group has_many Campaigns. Campaign has_and_belongs_to_many Users (and, naturally, vice versa). So I've got a groups table, a campaigns table (that has a grou

[Rails] Re: Re: Gem install bundler works, gem bundle doesn't?

2012-01-29 Thread John Z.
Hello. I'm having the exact same problem. I'm on a hosted plan where I don't have root access. I am using RVM. gem environment output: http://fpaste.org/9Ek4/ I can also type which bundle: /home/giglinke/.rvm/bin/bundle But anything else (bundle -v, bundle install, etc.) gives me the error repor

Re: [Rails] has_many association and parent_id

2012-01-29 Thread Dave Aronson
On Sun, Jan 29, 2012 at 05:45, Soichi Ishida wrote: > Furthermore, in order to refer to the parent (in this case, 'Video'), I > need to set video_id:integer for Script.  Am I correct ? Yes. > how can I actually associate a new 'script' entry with > its parent, 'video', in making a new 'Script'

Re: [Rails] changing migration

2012-01-29 Thread Dave Aronson
On Sat, Jan 28, 2012 at 22:14, Soichi Ishida wrote: > Suppose I have implemented > > $ rails generate scaffold script video:references text:string > > it generated > > 20120128103756_create_scripts.rb > > But I want to change this model, so instead of redoing it like "rails > destroy -> rail

Re: [Rails] AssetNotPrecompiledError for missing assets - really?

2012-01-29 Thread Peter Vandenabeele
On Sun, Jan 29, 2012 at 7:30 PM, Pascal Friederich wrote: > I migrated one of my projects to from Rails 3.0 to 3.2.1 which means > I'm using the asset pipeline for the first time. > As much as I like the ease of compressing and minifying my assets the > more I'm annoyed about its behavior to raise

[Rails] AssetNotPrecompiledError for missing assets - really?

2012-01-29 Thread Pascal Friederich
I migrated one of my projects to from Rails 3.0 to 3.2.1 which means I'm using the asset pipeline for the first time. As much as I like the ease of compressing and minifying my assets the more I'm annoyed about its behavior to raise an AssetNotPrecompiledError as soon as, well, there's an asset tha

Re: [Rails] ActionMailer and Ruby SMTP causing a segmentation fault!

2012-01-29 Thread Paul
First, the 1.9.1 is "normal". That's always the folder it uses. Second, are you having this problem? http://www.christopherirish.com/2011/09/02/ruby-1-9-2-segmentation-fault-and-openssl/ On Sat, Jan 28, 2012 at 1:14 PM, Don wrote: >>> tries to send out the confirmation-link email I get a segment

[Rails] seg fault

2012-01-29 Thread Phil Dobbin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, all. I'm trying to push another app to Heroku & `bundle install` is telling me there's a bug: `/Users/dobbin/.rvm/gems/ruby-1.9.3-p0/gems/json-1.6.5/ext/json/ext/json/ext/parser.bundle: [BUG] Segmentation fault ruby 1.8.7 (2011-12-28 patchlevel 3

[Rails] Fwd: [chennaiocc] Looking for Ruby on Rails developers - Remote working is also accepted.

2012-01-29 Thread Sathia S
-- Forwarded message -- From: Karthik Ramesh Date: Sat, Jan 28, 2012 at 1:29 AM Subject: [chennaiocc] Looking for Ruby on Rails developers - Remote working is also accepted. To: chennai...@googlegroups.com Hi, I am Karthik and I am developing an HTML5 application for creating mo

Re: [Rails] mass_assignment_sanitizer and Factories w/ rspec

2012-01-29 Thread Peter Vandenabeele
On Sun, Jan 29, 2012 at 10:52 AM, Phoenix Rising wrote: > I'm running into a bit of an issue when it comes to using > factory_girl_rails (1.6.0) with 3.2's mass_assignment_sanitizer > = :strict and I'm hoping some one can offer me some guidance to > improve my tests. > > The problem: > Say you hav

[Rails] has_many association and parent_id

2012-01-29 Thread Soichi Ishida
Rails 3.1.3 Hi everyone again. I'm trying to develop a database and tables which have the association as follows. Video 1 - 0..n Script So, in 'script.rb' class Script < ActiveRecord::Base belongs_to :video ... end and in 'video.rb' class Video < ActiveRecord::Base has_many :scripts

[Rails] mass_assignment_sanitizer and Factories w/ rspec

2012-01-29 Thread Phoenix Rising
I'm running into a bit of an issue when it comes to using factory_girl_rails (1.6.0) with 3.2's mass_assignment_sanitizer = :strict and I'm hoping some one can offer me some guidance to improve my tests. The problem: Say you have a test that looks like this: it "allows you to create an object" do

[Rails] Re: trouble in storing dates from localized form text fields...

2012-01-29 Thread Erwin
[SOLVED] don't know if it's the best solution, but it worked... changed the date text_fields to text_field_tag, on output , set the value in the controller, with I18n and local format >> @start_shooting_date = I18n.l( @project[:start_shooting_date], :format => >> "%d/%m/%Y") then on input , set