Other stuff I have learned before I started this blog

How to replace the default Rails 4 web servr, WebBrick with a different web server that is less verbose (Thin web server) http://code.macournoyer.com/thin/usage/

How to do active model validations. My first use case was simply validating the presence of data in a form. (http://guides.rubyonrails.org/active_record_validations.html)

How to use the rails console (rails c) to play around with the active record query interface. Basically to create and retrieve records from the sqlite3 database. Railscasts has a pretty good lesson on this. (http://railscasts.com/episodes/202-active-record-queries-in-rails-3)

How to use flash messages as a way to pass data between actions / controllers. (http://guides.rubyonrails.org/action_controller_overview.html#the-flash). In my case the first tome the need for this arose when I was wrestling with how to capture and pass model validation error messages between controllers. See the Stack Overflow question for more details on that one. (http://stackoverflow.com/questions/20368717/rails-i-cant-pass-a-validation-error-in-a-redirect/20582976?noredirect=1#20582976)



Leave a Reply

Your email address will not be published. Required fields are marked *