[Rails] Re: Dropdown menu does not work

2014-07-28 Thread Jaimin Pandya
Sampath Weerasinghe wrote in post #1153678: Does the javascript console ( F12 ) show any errors ? When I used code in application.js as per javascript load order like as follow: //= require jquery //= require jquery_ujs //= require jquery-ui //= require bootstrap //= require_tree . I got

[Rails] Re: rake test:prepare fails in Rails 4.0.8

2014-07-28 Thread Javix
On Sunday, July 27, 2014 8:12:14 PM UTC+2, Special Agent Dale Cooper wrote: I was testing my app (with rspec) when I noticed that *rake test:prepare* throws an odd *FATAL: database postgres does not exist *error. Stranger still, my tests run just fine regardless. However, whenever I

[Rails] Re: Ruby On Rails Install on Win 7 32 bit error

2014-07-28 Thread Javix
On Sunday, July 27, 2014 5:01:40 AM UTC+2, rubynewbie wrote: I am a newbie on Ruby on Rails. When trying to install on Win 7 32 bit PC, after executing gem install rails, got the following errors: 9 gems installed error: while generating documentation for actionpack-4.1.4 ... MESSAGE:

[Rails] Re: (Occasionally) display DateTime as local time

2014-07-28 Thread Ronald Fischer
Scott Ribe wrote in post #1153641: And if you don't want to change the RoR default, you can think up your own name and add your own setting to the config. No, the Rails default is fine. I'll go with the solution proposed by Colin. Ronald -- Posted via http://www.ruby-forum.com/. -- You

Re: [Rails] Re: Ruby On Rails Install on Win 7 32 bit error

2014-07-28 Thread Colin Law
On 28 July 2014 09:30, Javix s.camb...@gmail.com wrote: ... Here are the steps to install the Rails environment on a Windows box: - DO NOT use the rails Installer ! An explanation of why not would be useful. I have heard others say it is the way to go. Colin -- You received this message

Re: [Rails] Re: Ruby On Rails Install on Win 7 32 bit error

2014-07-28 Thread Serguei Cambour
It was just a personal approach, i.e. I'd prefer to install the things knowing exactly what happens and and when. Rails Installer seems to me (always personal) as a kind of 'black box'. More of that, it seems to be the preferred way to install via RubyInstaller (the easiest way), see

[Rails] Re: Dropdown menu does not work

2014-07-28 Thread Jaimin Pandya
I have solved this issue. I add following code in users.js.coffee: jQuery - $('.dropdown-toggle').dropdown() -- 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

[Rails] Re: Customise message for validates_uniqueness_of

2014-07-28 Thread Matt Jones
On Friday, 25 July 2014 23:21:08 UTC-4, Ricky Hopkins wrote: I am trying to convert an integer to a DAYNAME in my validation message validates_uniqueness_of :day, scope: :store, :message = already has a target for #{Date::DAYNAMES[self.day]}. This does not seem to work, I cannot access

[Rails] Re: object.errors not work in Bootstrap Form Helper

2014-07-28 Thread Matt Jones
On Sunday, 27 July 2014 06:21:40 UTC-4, Nikolay Lipovtsev wrote: I made helper ​​for Bootstrap Form. In it I made ​​a separate method has_error?, who must determine whether the error messages, but this is not happening. How can I fix it? If there are still errors, omissions, and not the

[Rails] Re: Customise message for validates_uniqueness_of

2014-07-28 Thread Eric Saupe
This is along the lines of what Matt is referring to. class DayValidator ActiveRecord::Validator def validate() if YOUR_TEST_FOR_INVALIDITY(record.day) date = Date::DAYNAMES[record.day] record.errors[:day] already has a target #{date} end end end class YourClass