[Rails] Coupure de connexion entre Rails 3.2.7 et Postgres 8.4

2012-10-11 Thread Rémi Nuyts
Bonjour à tous, Je développe une grosse application en Rails 3.2.7 qui est connecté à une BD Postgres 8.4 installée sur la même machine. L'application s'exécute sur Apache avec le module Passenger. L'application est constamment utilisée par une centaine d'utilisateurs et ne pose aucun problème

[Rails] Discussion: Inserting NULL into database instead of empty strings

2012-10-11 Thread bricker
When a form is submitted and handled by Rails, it doesn't strip out empty parameters, instead just inserting those values as-is (blank strings). I'm not claiming this to be a problem or a bug, I just want to know if there is a built-in way to normalize these values to ensure clean data. I've

Re: [Rails] How do we get the End of Line date for the gems which we are using Ruby on Rails?

2012-10-11 Thread Colin Law
On 10 October 2012 23:44, Jeffrey L. Taylor r...@abluz.dyndns.org wrote: Quoting Colin Law clan...@googlemail.com: On 10 October 2012 10:39, RoR Uk railsuk...@gmail.com wrote: Hi All, I want to know the EOL date for the below gems for ROR. Can anyone help me how to find the EOL dates

Re: [Rails] How to get the value of association column name in ruby on rails?

2012-10-11 Thread Colin Law
On 10 October 2012 23:54, Sri ganesh K srickgan...@gmail.com wrote: If i have two models like Question and Answer. Question has three columns like question_id, question_type, question_text and Answer has three values answer_id, question_id, answer_text. Question should generally not have a

[Rails] Re: Discussion: Inserting NULL into database instead of empty strings

2012-10-11 Thread Johann Christoph Gorzny
hello, if you want a default null in a column you can define it in the migrations. for example: t.text :columnname, null: true hope i understand your problem. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on

[Rails] convert the cells in table to images

2012-10-11 Thread kiran cy
I have a document with tables in it. I want to convert the each cell present in the table to image. Any suggestions... -- 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,

Re: [Rails] convert the cells in table to images

2012-10-11 Thread Colin Law
On 11 October 2012 10:57, kiran cy li...@ruby-forum.com wrote: I have a document with tables in it. I want to convert the each cell present in the table to image. I, for one, have little idea exactly what you mean by this. What sort of document? What do you mean by convert each cell to an

[Rails] Re: convert the cells in table to images

2012-10-11 Thread kiran cy
Colin Law wrote in post #1079401: On 11 October 2012 10:57, kiran cy li...@ruby-forum.com wrote: I have a document with tables in it. I want to convert the each cell present in the table to image. I, for one, have little idea exactly what you mean by this. What sort of document? What do

Re: [Rails] Re: convert the cells in table to images

2012-10-11 Thread Colin Law
On 11 October 2012 11:08, kiran cy li...@ruby-forum.com wrote: Colin Law wrote in post #1079401: On 11 October 2012 10:57, kiran cy li...@ruby-forum.com wrote: I have a document with tables in it. I want to convert the each cell present in the table to image. I, for one, have little idea

[Rails] Re: Re: convert the cells in table to images

2012-10-11 Thread kiran cy
Colin Law wrote in post #1079405: On 11 October 2012 11:08, kiran cy li...@ruby-forum.com wrote: What has this got to do with Ruby on Rails? Colin I just have to upload the ms-word document file and click the upload button which should give me the images of the each cell in the table. how

Re: [Rails] Re: Re: convert the cells in table to images

2012-10-11 Thread Colin Law
On 11 October 2012 11:24, kiran cy li...@ruby-forum.com wrote: Colin Law wrote in post #1079405: On 11 October 2012 11:08, kiran cy li...@ruby-forum.com wrote: What has this got to do with Ruby on Rails? Colin I just have to upload the ms-word document file and click the upload button

[Rails] Re: Re: Re: convert the cells in table to images

2012-10-11 Thread kiran cy
Colin Law wrote in post #1079407: On 11 October 2012 11:24, kiran cy li...@ruby-forum.com wrote: Colin I have tables in ms-word document(of format doc). I want to convert the data present in each cell either it may be text or image to the image How do you suggest I do it? As I said the

Re: [Rails] Re: Re: Re: convert the cells in table to images

2012-10-11 Thread Colin Law
On 11 October 2012 11:40, kiran cy li...@ruby-forum.com wrote: Colin Law wrote in post #1079407: On 11 October 2012 11:24, kiran cy li...@ruby-forum.com wrote: Colin I have tables in ms-word document(of format doc). I want to convert the data present in each cell either it may be text or

[Rails] Getting error while submitting form in ruby on rails with radiant

2012-10-11 Thread Nirav
I have issues with radiant cms version 0.8.2.In Application,when i click on submit on form application got an error uninitialized controller which is in radiant/app/controller. error : NameError (uninitialized constant ResourceController):

[Rails] what;s the right url in this case

2012-10-11 Thread roelof
Hello, I have this models class Berichten ActiveRecord::Base attr_accessible :bericht, :user belongs_to :user belongs_to :Category end class User ActiveRecord::Base attr_accessible :email, :name has_many :berichten end class Category ActiveRecord::Base attr_accessible :id

[Rails] Re: Getting error while submitting form in ruby on rails with radiant

2012-10-11 Thread Nirav
i tried little bit but it doesn't helpful to me (with the help of googling and stackoverflow suggestions ): 1. class Admin::ResourceController ApplicationController this is in resource_controller.rb file. and i also tried to put resource_controller.rb file out of admin. but it gives error

[Rails] Re: Re: Re: Re: convert the cells in table to images

2012-10-11 Thread kiran cy
Colin Law wrote in post #1079413: On 11 October 2012 11:40, kiran cy li...@ruby-forum.com wrote: file in ruby, which I don't know how to do. Did google help you with this? Is suggest googling for ruby read .doc Colin I can read doc using the docx gem, my problem is identifying the cell

Re: [Rails] Re: Re: Re: Re: convert the cells in table to images

2012-10-11 Thread Colin Law
On 11 October 2012 12:31, kiran cy li...@ruby-forum.com wrote: Colin Law wrote in post #1079413: On 11 October 2012 11:40, kiran cy li...@ruby-forum.com wrote: file in ruby, which I don't know how to do. Did google help you with this? Is suggest googling for ruby read .doc Colin I can

Re: [Rails] what;s the right url in this case

2012-10-11 Thread Hassan Schroeder
On Thu, Oct 11, 2012 at 4:23 AM, roelof rwob...@hotmail.com wrote: class Berichten ActiveRecord::Base attr_accessible :bericht, :user belongs_to :user belongs_to :Category Category there should not be capitalized end What I wonder is what the right url is when I want to place a new

[Rails] Re: Re: Re: Re: Re: convert the cells in table to images

2012-10-11 Thread kiran cy
Colin Law wrote in post #1079421: On 11 October 2012 12:31, kiran cy li...@ruby-forum.com wrote: @zip = Zip::ZipFile.open(path) @xml=Nokogiri::XML(@zip.find_entry('word/document.xml').get_input_stream) if block_given? yield self @zip.close end end I don't understand why

Re: [Rails] Re: Re: Re: Re: Re: convert the cells in table to images

2012-10-11 Thread Colin Law
On 11 October 2012 12:46, kiran cy li...@ruby-forum.com wrote: Colin Law wrote in post #1079421: On 11 October 2012 12:31, kiran cy li...@ruby-forum.com wrote: @zip = Zip::ZipFile.open(path) @xml=Nokogiri::XML(@zip.find_entry('word/document.xml').get_input_stream) if block_given?

Re: [Rails] what;s the right url in this case

2012-10-11 Thread Jordon Bedwell
On Thu, Oct 11, 2012 at 6:23 AM, roelof rwob...@hotmail.com wrote: Hello, I have this models class Berichten ActiveRecord::Base attr_accessible :bericht, :user belongs_to :user belongs_to :Category end class User ActiveRecord::Base attr_accessible :email, :name has_many

Re: [Rails] what;s the right url in this case

2012-10-11 Thread roelof
The controllers looks now like this : class BerichtenController ApplicationController def new end def index @berichten = Berichten.all end def delete end def show end end class And the other controller: lass UsersController ApplicationController def new end def

[Rails] Re: ActiveRecord::RecordNotSaved - Failed to save the new association Authentication

2012-10-11 Thread Remi B.
Line 49 is the last line given in my CustomersController code. (---LINE 49) The problem is that there isn't a save, but I am just connecting the authentication to my customers authentication association. I can't do the save! because of that... -- Posted via http://www.ruby-forum.com/. --

Re: [Rails] ActiveRecord::RecordNotSaved - Failed to save the new association Authentication

2012-10-11 Thread Walter Lee Davis
Ah, then you probably missed an end somewhere. Walter On Oct 11, 2012, at 10:23 AM, Remi B. wrote: Line 49 is the last line given in my CustomersController code. (---LINE 49) The problem is that there isn't a save, but I am just connecting the authentication to my customers

[Rails] Re: Consuming RESTful api with activeResource

2012-10-11 Thread arturo drlt
So far I came with a solution for two of this issues: 1) Url using a pluralized name of the object User solved with: self.collection_name = user 2) Removing the extension from the URL, I solve this adding a Module that I found googling around to override some methods of AR. I thought that

Re: [Rails] Re: back /front page question

2012-10-11 Thread Saravanan P
Just create admin.html.erb like application.html.erb under views/layouts/ And Just mentions in your controller which ever controller you need to use admin layout class TestController InheritedResources::Base layout admin end On Thu, Oct 11, 2012 at 1:13 AM, Johann Christoph Gorzny

Re: [Rails] Discussion: Inserting NULL into database instead of empty strings

2012-10-11 Thread Scott Ribe
On Oct 11, 2012, at 1:16 AM, bricker wrote: When a form is submitted and handled by Rails, it doesn't strip out empty parameters, instead just inserting those values as-is (blank strings). I'm not claiming this to be a problem or a bug, I just want to know if there is a built-in way to

[Rails] http streaming in Rails 3.0.3 and thin server

2012-10-11 Thread renu mehta
Hello, In my site I am using 'thin' server and my environment is Rails 3.0.3 and Ruby 1.8.7. Certain pages in site take a long time to process and as I am hosting it on Heroku I get timeout errors frequently. I am planning to use http streaming in this setup. When I use curl on the command prompt

[Rails] Rails 3.2 what are the best gems for full-text search in sql db ?

2012-10-11 Thread Erwin
there are a lot of solutions , some gems requiring a separate server setup... I need to search for occurrences of some 'text in multiple columns ( :name; :email, :description, ..) Should I actually setup a SOLr server ? thanks for feedback -- You received this message because you are

Re: [Rails] Rails 3.2 what are the best gems for full-text search in sql db ?

2012-10-11 Thread Jordon Bedwell
On Thu, Oct 11, 2012 at 12:44 PM, Erwin yves_duf...@mac.com wrote: there are a lot of solutions , some gems requiring a separate server setup... I need to search for occurrences of some 'text in multiple columns ( :name; :email, :description, ..) https://github.com/Casecommons/pg_search

[Rails] Re: ActiveRecord::RecordNotSaved - Failed to save the new association Authentication

2012-10-11 Thread Remi B.
Solution Because of the hashing of my password, it validated the wrong length. Now I made sure that my validation was performed before I hashed my password. NEW PROBLEM (damn it's still tricky for me) --- Stating the

Re: [Rails] ActiveRecord::RecordNotSaved - Failed to save the new association Authentication

2012-10-11 Thread Walter Lee Davis
On Oct 11, 2012, at 2:03 PM, Remi B. wrote: Solution Because of the hashing of my password, it validated the wrong length. Now I made sure that my validation was performed before I hashed my password. NEW PROBLEM (damn it's still tricky for me)

[Rails] Re: Rails 3.2 what are the best gems for full-text search in sql db ?

2012-10-11 Thread Erwin
Thanks , seems to be only for Postgres... I'm using MySQL.. Testicle seems to be inetresting Oh sorry .. Texticle On 11 oct, 19:51, Jordon Bedwell envyge...@gmail.com wrote: On Thu, Oct 11, 2012 at 12:44 PM, Erwin yves_duf...@mac.com wrote: there are a lot of solutions , some gems requiring a

[Rails] Re: ActiveRecord::RecordNotSaved - Failed to save the new association Authentication

2012-10-11 Thread Remi B.
Sorry, did not include that one... validates :email, :presence = true, :confirmation = true, :format = {:with = /\A[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]+\z/} Thats what is in my Customer validation -- Posted via http://www.ruby-forum.com/. -- You received this message because you

Re: [Rails] Re: Error in cap deploy command

2012-10-11 Thread Mandeep Kaur
Thanks to all for helping me. Problem Solved : ). -- Mandeep Kaur http://mandeepsimak.wordpress.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@googlegroups.com. To unsubscribe

Re: [Rails] Business Object Architect

2012-10-11 Thread Dave Aronson
On Thu, Oct 11, 2012 at 1:27 AM, Walther Diechmann walt...@diechmann.net wrote: As much as I understand the dire circumstances of our global maltreated economy prompting extraordinary measures, I am still to uncover the motives luring peoples searchers into posting their particulars on a

Re: [Rails] Rails 3.2 what are the best gems for full-text search in sql db ?

2012-10-11 Thread Jim Ruther Nill
On Fri, Oct 12, 2012 at 3:44 AM, Erwin yves_duf...@mac.com wrote: there are a lot of solutions , some gems requiring a separate server setup... I need to search for occurrences of some 'text in multiple columns ( :name; :email, :description, ..) Should I actually setup a SOLr server ? I