Giter Club home page Giter Club logo

Comments (3)

siddhantpuri avatar siddhantpuri commented on August 15, 2024

Hi

Can you send us the error message you're receiving maybe some screenshots.
In the production environment file there should be that lets you treats all
requests as local requests and it will give you a more useful error message

Sent from my iPhone

On Jul 25, 2015, at 9:39 AM, Ernesto Rosas [email protected] wrote:

Hi, I'm reviewing the online material and doing this homework (thanks for
releasing such a terrific course!). So far, my development environment runs
nicely but, unfortunately, I ran into some issues when trying to deploy to
Heroku:

The Gemfile specifies that HAML will only be installed in development
and test environments, so the views are not been rendered
(ActionView::MissingTemplate error). Besides, I had to move the sqlite gem
to development and test groups in order to deploy to Heroku.

The movie model uses attr_accesible which is not supported in Rails 4.
Apparently, this wasn't a problem for my local environment but, on Heroku,
I had to use strong parameters
http://easyactiverecord.com/blog/2014/04/01/rails4-strong-parameters-and-the-attr-accessible-macro/
instead.


Reply to this email directly or view it on GitHub
#1.

from hw-rails-intro.

 avatar commented on August 15, 2024

BTW, I´ve already modified some files and my app is up and running on Heroku.

Heroku complaining about sqlite gem:

cap1

Issue with attr_accesible method:

cap2

ActionView template error:

cap3

from hw-rails-intro.

armandofox avatar armandofox commented on August 15, 2024

yes, the updated hw should use the strong parameters mechanism exclusively, since attr_accessible and attr_protected are gone from rails 4.

and yes, haml should be in all envs, and sqlite3 should NOT appear in production (whereas pg should appear).

sid - how was this not caught in testing? i assume that testing for the deployable hw's includes deploying to heroku...or is the problem that he's not using the latest version? (ernesto - we're upgrading all the hw's to be rails 4 compatible but we haven't released all the updated ones yet...)

Armando Fox
Professor, Computer Science Division
Faculty Advisor, UC Berkeley MOOCLab
fox .at. cs .dot. berkeley .dot. edu
581 Soda Hall MC#1776, Berkeley, CA 94720-1776
+1.510.642.6820 / http://www.cs.berkeley.edu/~fox

TAKE MY CLASS FOR FREE VIA edX: http://saas-class.org
LIKE IT ON FACEBOOK: http://facebook.com/saas-class
TRY MY BOOK (NOT FREE): http://beta.saasbook.info (goes with the course)

On Jul 25, 2015, at 12:46 PM, Siddhant Puri [email protected] wrote:

Hi

Can you send us the error message you're receiving maybe some screenshots.
In the production environment file there should be that lets you treats all
requests as local requests and it will give you a more useful error message

Sent from my iPhone

On Jul 25, 2015, at 9:39 AM, Ernesto Rosas [email protected] wrote:

Hi, I'm reviewing the online material and doing this homework (thanks for
releasing such a terrific course!). So far, my development environment runs
nicely but, unfortunately, I ran into some issues when trying to deploy to
Heroku:

The Gemfile specifies that HAML will only be installed in development
and test environments, so the views are not been rendered
(ActionView::MissingTemplate error). Besides, I had to move the sqlite gem

to development and test groups in order to deploy to Heroku.

The movie model uses attr_accesible which is not supported in Rails 4.
Apparently, this wasn't a problem for my local environment but, on Heroku,
I had to use strong parameters
http://easyactiverecord.com/blog/2014/04/01/rails4-strong-parameters-and-the-attr-accessible-macro/
instead.


Reply to this email directly or view it on GitHub
#1.

Reply to this email directly or view it on GitHub.

from hw-rails-intro.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.