This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # r18n will grab locale info from the session first and if it's not in the session, the browser, if it can. | |
| # add this to your code to allow for a manual override of the session | |
| before do | |
| session[:locale] = params[:locale] if params[:locale] #the r18n system will load it automatically | |
| end | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Summary | |
| ------- | |
| Heroku crashes consistently with an "Ouchie Guy" whenever a logged-in user of my app creates or edits any data. | |
| Details | |
| ------- | |
| See the app http://frank-demo.heroku.com | |
| I can log into my app as a root user (with 'root' and 'password' to keep it simple) but from that point on any attempt to | |
| * edit my profile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| helpers do | |
| def haml(template, options = {}, *) | |
| # template will either be the name of a template or the body of a template. | |
| # if it's the body then it will contain a "%" symbol and so we can skip any processing | |
| template_name = template.to_s | |
| do_not_localise = false | |
| if template_name.include?('%') |
NewerOlder