[Rails] Rails 4.2 travel_to is not working

2015-02-17 Thread Cezinha Anjos
Hi! I have two projects running Rails 4.2 and using travel_to from ActiveSupport::Testing::TimeHelpers. In one project everything is working perfectly. But in the second one, my specs are running with the current date/time instead of using travel_to. Here is one example: it is only a

[Rails] Re: Rails2/Rails3 nested form, fields_for not displayed

2015-02-17 Thread José D.
thank you thank you thank you I'm starting to play with Ruby (being a python man myself), and I've been loosing my mind for two days with this!!! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

Re: [Rails] Nested loops through one model

2015-02-17 Thread Colin Law
On 17 February 2015 at 15:39, Tony Tambe tambe...@gmail.com wrote: In my music review app the Pins model has attributes of Pin.artist and Pin.album. I'm trying to list each artist reviewed on the site and which albums of theirs have been reviewed. Below is what I have so far, but I want to do

Re: [Rails] help! what does deep_symbolize_keys mean?

2015-02-17 Thread Colin Law
On 17 February 2015 at 12:52, Jensen Vang jensen.v...@gmail.com wrote: help! what does this means? undefined method `deep_symbolize_keys' for :String It probably means you have done something like passing a string parameter when a hash is expected. Colin -- You received this message because

[Rails] Nested loops through one model

2015-02-17 Thread Tony Tambe
In my music review app the Pins model has attributes of Pin.artist and Pin.album. I'm trying to list each artist reviewed on the site and which albums of theirs have been reviewed. Below is what I have so far, but I want to do it without repeating the artist name. Controller: @pin_albums =

[Rails] Re: Strange mailer behaviour in Rails 4.2

2015-02-17 Thread Damjan Rems
Colin Law wrote in post #1168195: On 17 February 2015 at 09:56, Damjan Rems li...@ruby-forum.com wrote: The code inside test method doesn't get executed at all. class MailSender ActionMailer::Base default :from = 'no.reply@some.where' def test() Should that not be def self.test() if

Re: [Rails] Strange mailer behaviour in Rails 4.2

2015-02-17 Thread Colin Law
On 17 February 2015 at 09:56, Damjan Rems li...@ruby-forum.com wrote: The code inside test method doesn't get executed at all. class MailSender ActionMailer::Base default :from = 'no.reply@some.where' def test() Should that not be def self.test() if you want to call it using

[Rails] Strange mailer behaviour in Rails 4.2

2015-02-17 Thread Damjan Rems
The code inside test method doesn't get executed at all. class MailSender ActionMailer::Base default :from = 'no.reply@some.where' def test() should_die_here mail( :to = 't...@to.com', :subject = 'Test', :text = 'Text').deliver end end ## In controller:

Re: [Rails] help! what does deep_symbolize_keys mean?

2015-02-17 Thread Anuj Dutta
Hi, It means the method 'deep_symbolize_keys' isn't defined for an instance of a String. 'deep_symbolize_keys' is used for hashes. Google to use use cases. Hope it helps. Anuj On 17 February 2015 at 12:52, Jensen Vang jensen.v...@gmail.com wrote: help! what does this means? undefined method

[Rails] help! what does deep_symbolize_keys mean?

2015-02-17 Thread Jensen Vang
help! what does this means? undefined method `deep_symbolize_keys' for :String -- 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