Comments (3)
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.
BTW, I´ve already modified some files and my app is up and running on Heroku.
Heroku complaining about sqlite gem:
Issue with attr_accesible method:
ActionView template error:
from hw-rails-intro.
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 messageSent 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 gemto 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)
- add tests HOT 1
- are hints about `find` appropriate? HOT 1
- break part 3 into more steps
- Fails to deploy to Heroku due to SQlite incompatibility HOT 1
- Note code issue HOT 1
- instructions need formatting changes to self check questions
- use on codio HOT 2
- Oops VFS connection does not exist HOT 3
- codio/bundler issue HOT 4
- sqlite issue HOT 1
- missing codio instructions HOT 1
- Some possible changes to the instructions? HOT 3
- add learning objectives
- split docs into three parts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hw-rails-intro.