[Rails] Re: Help getting started

2015-04-21 Thread TC R.
I get a basically identical error message. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to

[Rails] Re: Solve my problem, please

2015-04-21 Thread André Orvalho
To solve your problem: 1. Quit windows 2. Second either run bundle, or google your problem and you will find stuff like this: http://stackoverflow.com/questions/15480381/how-do-i-install-sqlite3-for-ruby-on-windows -- You received this message because you are subscribed to the Google Groups

[Rails] Help me to find a way to share controller and view for a polymorfic association

2015-04-21 Thread Roberto Pezzali
Hello, I'm trying to complete my app but I'm blocked in front of a relation. I have 3 models: Video, Gallery and Content. Every model is sharable and I'm using a polymorphic relation, so I create a content_share model. I want to manage my association with the content_share controller and with a

[Rails] devise gem issue

2015-04-21 Thread Manish K.
http://stackoverflow.com/questions/29740209/how-to-submit-form-after-successfully-signed-in please go through the above link, i have not got correct answer in stackoverflow. Looking for some suggestion -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

Re: [Rails] Re: Solve my problem, please

2015-04-21 Thread André Orvalho
yea sorry about that, I meant quit windows like you should quit a bad job! :) -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [Rails] Re: how can i whitelist params when used with constantize?

2015-04-21 Thread tom
hi the problem is my update method: @rec.update(params[:rec].require(@form.sourcetable.singularize.parameterize.underscore.to_sym).permit!) - param not found: employer (@rec is the record to be updated) and here is the params hash: {utf8=✓, _method=patch,

Re: [Rails] relation between lib and model components

2015-04-21 Thread Emmanuel Abia
I don't think it is necessary creating any file in /lib since you want to run a process on just one model. Have your process method created in the model class : self.process_method() On Apr 21, 2015 3:35 PM, Ben Amsalem ben...@gmail.com wrote: Hi all, I'm going to create a process that needs to

[Rails] Re: Rescuing ActiveRecord errors without logging

2015-04-21 Thread Inba
I'm not speaking about the encoding issue but about the exception rescue issue. Imagine I would like to handle unique key exceptions for instance. On Monday, April 20, 2015 at 5:53:05 PM UTC+3, Ruby-Forum.com User wrote: Hi there , i don't know if that will help you , but i did have this kind

Re: [Rails] Re: Solve my problem, please

2015-04-21 Thread Colin Law
On 21 April 2015 at 14:07, André Orvalho andre.orva...@gmail.com wrote: To solve your problem: 1. Quit windows Just to clarify that, I believe André meant not to close down Windows and restart, but to close down Windows permanently and use a different OS, either a Linux based system such as

[Rails] relation between lib and model components

2015-04-21 Thread Ben Amsalem
Hi all, I'm going to create a process that needs to execute a query (via one of my model classes) and then create a file according to the result. I think I'll locate this process class in my /lib folder, but it means that the lib will have to know the relevant model method that executes the

Re: [Rails] devise gem issue

2015-04-21 Thread Carlos Mathiasen
Matt's On Tue, Apr 21, 2015 at 12:41 PM, Colin Law clan...@gmail.com wrote: On 21 April 2015 at 16:01, Manish K. li...@ruby-forum.com wrote: http://stackoverflow.com/questions/29740209/how-to-submit-form-after-successfully-signed-in please go through the above link, i have not got

Re: [Rails] devise gem issue

2015-04-21 Thread Colin Law
On 21 April 2015 at 16:01, Manish K. li...@ruby-forum.com wrote: http://stackoverflow.com/questions/29740209/how-to-submit-form-after-successfully-signed-in please go through the above link, i have not got correct answer in stackoverflow. Looking for some suggestion If you want to ask a

[Rails] Error in installing json 1.8.0

2015-04-21 Thread Ananyo Maiti
Hi, I am facing problem in installing the json 1.8.0 ruby gem due to which i am unable to start my rails server.The error is shown below. Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /home/ananyo/.rvm/rubies/ruby-2.2.2/bin/ruby extconf.rb creating Makefile make

[Rails] facing issue in routes

2015-04-21 Thread Manish K.
I am using rail 4.2 and ruby 2.2.0p0, I need to submit form which belongs to user table, once the user authenticate and for authentication I am using devise, Do I need to create user controller and view manually or I have created two directory named as my_devise one under controllers and other

Re: [Rails] facing issue in routes

2015-04-21 Thread Colin Law
On 21 April 2015 at 17:25, Manish K. li...@ruby-forum.com wrote: I am using rail 4.2 and ruby 2.2.0p0, I need to submit form which belongs to user table, once the user authenticate and for authentication I am using devise, Do I need to create user controller and view manually or I have