Questions tagged [learn-ruby-on-rails]

Questions and answers related to the book "Learn Ruby on Rails" by Daniel Kehoe.

Questions and answers for the book Learn Ruby on Rails by Daniel Kehoe. The book is available at learn-rails.com.

33 questions
1
vote
1 answer

Nitrous.io google_drive gem "Authentication failed" error

I am trying to utilize the google_drive gem in a Rails app and am getting the following error: "Authentication failed for [my_email_address]@gmail.com: Response code 403 for post https://www.google.com/accounts/ClientLogin: Error=BadAuthentication…
1
vote
1 answer

Receiving syntax error message when trying to start application server for first Rails application after configuration [noob]

The following message pops up when I enter $ rails server in the Terminal (Mac, running latest version of Yosemite). I'm pretty lost, other topics have recommended altering the text in the config folder of my project, but what I've tried hasn't…
Dan Engel
  • 75
  • 1
  • 10
1
vote
2 answers

Learn Ruby on Rails book: email configuration using TextEdit

I was on page 147 (epub) of Kehoe's Learn Ruby on Rails book and copied this code to config/environments/development.rb: config.assets.debug = true config.action_mailer.smtp_settings = { address: "smtp.gmail.com", port: 587, domain:…
Szymon Borucki
  • 407
  • 4
  • 13
1
vote
0 answers

RailsLayout gem doesn't create expected files

Following the example in the book Learn Ruby on Rails, I ran rails generate layout:install foundation5 --force and then checked for the framework_and_overrides.css.scss file in the app/assets/stylesheets/ folder. It did not remove the simple.css…
1
vote
3 answers

Rails - Closed terminal and rebooted machine - now bash tells me rails isn't installed

Running OSX Mavericks, ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0], rvm 1.25.23 (master), and rails-4.1.0 (allegedly) I'm working through the railsapps.org book on learning rails and made it about 1/2 way through yesterday. When I…
trick420
  • 237
  • 3
  • 9
1
vote
2 answers

I need to start over with a fresh, ground zero, install of Rails. How do I do that?

Running Mac OS X Mavericks, I have completely jacked up my Rails installation to the point that I am unable to sort out what all is wrong. I'm working through the railsapps.org book on learning rails and am simply trying to set up the test…
trick420
  • 237
  • 3
  • 9
1
vote
1 answer

Rails_Layout "Could Not Find Layout Generator"

I'm trying to use this command in Terminal: rails generate layout simple --force and when I do I get this error: Could not find generator layout. So I attempted to try to be more specific in my gemfile, and added the specific, newest version number…
Anthony Myers
  • 393
  • 1
  • 6
  • 18
0
votes
0 answers

Why are my validations not working in rails app? (Daniel Kehoe's Learn Rails Tutorial Book)

I am on chapter 19 of the learn rails book by Daniel Kehoe and have created a form. However when I deliberately make errors in order to test the validations no messages appear. for example when I submit an empty form it simply renders a new form…
Owen
  • 361
  • 1
  • 5
  • 16
0
votes
3 answers

Syntaxis error when Start Rails Server after first configuration

I am trying to run rails server and I get the following error after the first configuration: => Booting WEBrick => Rails 4.2.6 application starting in development on http://localhost:3000 => Run `rails server -h` for more startup options => Ctrl-C…
0
votes
1 answer

Sendgrid returns SMTP-AUTH requested but missing user name

I am new to ruby on rails and I follow the book Learn-ruby-on-rails by Daniel Kehoe. I have set up my sengrid login details correctly on the Ubuntu enviroment. echo $ SENDGRID_USERNAME returns my username correctly. However, I still get "SMTP-AUTH…
Ola O
  • 25
  • 2
  • 7
0
votes
1 answer

Why do I get: An SMTP To address is required to send a message. "Set the message smtp_envelope_to, to, cc, or bcc address."?

I am following the learn Ruby on Rails book by Daniel Kehoe and when I try to send mail, I get the following error. ArgumentError at /contacts An SMTP To address is required to send a message. Set the message smtp_envelope_to, to, cc, or bcc…
Salamit
  • 1,015
  • 7
  • 13
0
votes
1 answer

learn-ruby-on-rails tutorial, mailchimp not sending any emails

I've been following the tutorial and have already reach deployment on heroku. The contact forms work perfectly and no errors messages are displaying. When I use the sign up button the success message appears with no error messages. Signing in at…
0
votes
0 answers

Authentication failed for : Response code 403 for post - Error=BadAuthentication

In my contact controller(app/model/contact.rb), it seem correct way to connect and save data to a spreadsheet on my google drive, I try to run it locally, I kept getting error messages and haven't receive any email. I installed gem google_drive: gem…
thunderRX5
  • 143
  • 1
  • 2
  • 14
0
votes
1 answer

Instantiate a ruby class no initialize method but with attr_accesors?

The following code works but I don't understand why. The Model: I have a Class called Contact that doesn't have an initialize method (i.e it inherits the initialize method from the default Object class). class Contact include ActiveModel::Model …
0
votes
1 answer

When sending an email through my Rails app using ActionMailer I get the email from myself despite of specifying the 'from:' argument

I am following the Learn Ruby on Rails book from the RailsApps project. On Chapter 23 we add the send mail functionality to the app. Everything seems to be working fine expect that the email I receive comes from my own e-mail (regardless of the…