[Rails] ActiveRecord .save return true but doesn't save ?

2015-05-05 Thread Si Tanguy
so i did create 'Archive' module . module Archive def self.included(klass) klass.instance_eval do define_method save_#{klass.name}_archive do ArchiveLogs.debug(PASS HERE) self.becomes Arch#{klass.name}.constantize end end end end and i use it just here :

[Rails] Keep your skin aging free with Hydroxacel Eye Cream

2015-05-05 Thread Stacie Polok
Hydroxacel Eye Cream is an easy and fast way of stabilizing the effects of aging as they are normal after 30. It is a beneficial aid for 30 years of age. Get it now! go to site : http://faceliftgymbuy.com/hydroxacel -- Posted via http://www.ruby-forum.com/. -- You received this message because

Re: [Rails] Connecting SQL Server and Rails 4.2.1

2015-05-05 Thread Scott Ribe
On May 5, 2015, at 10:37 AM, ganesh akella ganni...@gmail.com wrote: Can anyone help me regarding the database.yml file on connecting to sql server. And is it the only file which I need to look into or are there any other files which needs to be modified.? I tried to follow the

[Rails] Re: Jquery to center: Form with multiple hidden divs -- JS will size to the smallest div....

2015-05-05 Thread Elizabeth McGurty
I mis-wrote my site url: www.echomarket.org On Tuesday, May 5, 2015 at 12:49:05 PM UTC-4, Elizabeth McGurty wrote: On my site I guess I have about 20 forms, four of which have multiple hidden divs within the forms of varying sizes. For all of my forms the following works, but for those

[Rails] Re: Jquery to center: Form with multiple hidden divs -- JS will size to the smallest div....

2015-05-05 Thread Elizabeth McGurty
...despite monitor On Tuesday, May 5, 2015 at 12:49:05 PM UTC-4, Elizabeth McGurty wrote: On my site I guess I have about 20 forms, four of which have multiple hidden divs within the forms of varying sizes. For all of my forms the following works, but for those with the multiple divs...

[Rails] Connecting SQL Server and Rails 4.2.1

2015-05-05 Thread ganesh akella
https://lh3.googleusercontent.com/-i996epsjwwU/VUjxkeWqgxI/Dvw/CSg0Asl8nbo/s1600/console.JPG Hello friends, I am new in Ruby on rails. I am using Rails 4.2.1 and Ruby 2.0.0. For some reason I am not able to connect my sql server to rails. Can anyone help me regarding the database.yml

[Rails] Jquery to center: Form with multiple hidden divs -- JS will size to the smallest div....

2015-05-05 Thread Elizabeth McGurty
On my site I guess I have about 20 forms, four of which have multiple hidden divs within the forms of varying sizes. For all of my forms the following works, but for those with the multiple divs... it sizes height to the smallest div. What should I do? Should I JS code specifically for

[Rails] NameError: undefined local variable or method `itinerary' for main:Object

2015-05-05 Thread Bailey J
I am doing the sample application trips-app based on this slightly deprecated set of instructions https://ruby-geekcampbaguio.herokuapp.com/#2-database-crud I'll tell what worked so far and what has been different. In the instructions it refers to db/migrations but on my version of rails it

[Rails] Re: Logical help related to habtm..

2015-05-05 Thread Hemant Bhargava
I could have used the Enums as well but I preferred to go with boolean fields. I will have three boolean fields(OLD, NEW, VERY_OLD). As I wrote earlier, values could be multiple as well. So, If status is OLD and VERY_OLD both, then I will mark is_old is_very_old columns as true/1. -- Posted

[Rails] Re: Logical help related to habtm..

2015-05-05 Thread Hemant Bhargava
Joel Dezenzio wrote in post #1173071: I hate to go overboard on this question but I think a lot can be learned here. Your question dives into several sub-topics at once (database normalization, model associations, and ERD structures). I would concentrate on the following first: Even

Re: [Rails] Re: Make sure that 'gem install web-console -v '2.1.2' ` succeeds before bundling

2015-05-05 Thread Colin Law
On 4 May 2015 at 21:54, Bailey J kidbay...@gmail.com wrote: It worked by the way, so I think this post can be safely ignored. What worked? Colin -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop

[Rails] Newbie question : Rails 4 + mongo db

2015-05-05 Thread Manvi Sharma
Hi , I am new to ruby on rails (using rails 4 and ruby 2.0.0) and I'm looking for a good tutorial for mongo db using mongoid.yml. I found a few online, but they give only the basic steps. And I have done till that. ie. insert, query, etc from a mongo db database through the controller. My basic

Re: [Rails] Connecting SQL Server and Rails 4.2.1

2015-05-05 Thread Scott Ribe
On May 5, 2015, at 11:55 AM, Scott Ribe scott_r...@elevated-dev.com wrote: 2) Once you have that installed, then yes, that single .yml file is the only one you need to modify. I probably should have qualified that statement—it’s the only thing directly related to Rails that you need to

Re: [Rails] NameError: undefined local variable or method `itinerary' for main:Object

2015-05-05 Thread Colin Law
On 5 May 2015 at 19:15, Bailey J kidbay...@gmail.com wrote: I am doing the sample application trips-app based on this slightly deprecated set of instructions https://ruby-geekcampbaguio.herokuapp.com/#2-database-crud I'll tell what worked so far and what has been different. In the

Re: [Rails] Newbie question : Rails 4 + mongo db

2015-05-05 Thread rajeevsharma86
http://railscasts.com/episodes/238-mongoid On Tue, May 5, 2015 at 2:12 PM, Manvi Sharma li...@ruby-forum.com wrote: Hi , I am new to ruby on rails (using rails 4 and ruby 2.0.0) and I'm looking for a good tutorial for mongo db using mongoid.yml. I found a few online, but they give only the