Re: [Rails] Error in installing json 1.8.0

2015-04-21 Thread Colin Law
On 22 April 2015 at 04:20, Ananyo Maiti wrote: > VALUE result = rb_str_new(FBUFFER_PAIR(fb)) Googlin for that string led me to [1] which I think basically says that json 1.8.0 is not compatible with ruby 2.2. I think the solution is to use a later version of json or an earlier version of ruby.

[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 "DESTDI

Re: [Rails] facing issue in routes

2015-04-21 Thread Colin Law
On 21 April 2015 at 17:25, Manish K. 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 created two director

[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 und

Re: [Rails] devise gem issue

2015-04-21 Thread Carlos Mathiasen
Matt's On Tue, Apr 21, 2015 at 12:41 PM, Colin Law wrote: > On 21 April 2015 at 16:01, Manish K. 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.

Re: [Rails] devise gem issue

2015-04-21 Thread Colin Law
On 21 April 2015 at 16:01, Manish K. 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 question here then ask

[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 subsc

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" wrote: > Hi all, > I'm going to create a process that needs to execute a qu

[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 qu

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", "authenticity_token"=>"GNg

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 rubyonrails-talk+unsubscr...

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

2015-04-21 Thread Colin Law
On 21 April 2015 at 14:07, André Orvalho 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 Ubuntu or a Mac. Rails

[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

[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] 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 rubyonrails-talk+un

[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 s