It makes sense when a user creates an account, especially when an email confirmation is required, that the user is redirected to a welcome page letting them know they need to check their email to confirm registration. Or, if a user logs in, you probably want to redirect them to a page other than the root URL.
There are a variety of reasons you may want or need to rename a database or table column in your Rails application. Accomplishing this is quite simple.
There are many ways to upload photos to a Rails application, and quite a few resources on the web. This is what worked for me.
Providing a seamless user experiences often means removing the need to refresh a page when adding or removing content. This can be accomplished by working with AJAX within your Rails application.
Devise is a powerful authentication system for Rails applications. This tutorial walks you through setting up devise, as well as setting up your user MVC. Follow along with the code sample on GitHub.
If you have a blog and you want the user to be able to search your posts, you will need to add methods to both your posts controller and post model, and create a corresponding search form.
Adding a new static page to an existing Rails application can be accomplished in a few easy steps: (1) create a static controller, (2) generate static views, and (3) create corresponding routes.
If you’re just learning Ruby on Rails, you may be confused as to when to generate individual models, resources or scaffolding, and what files are created by each command.
Rails is a web application framework written in Ruby, also known as an MVC, or Model View Controller. Rails has two major philosophies: (1) DRY (“Don’t Repeat Yourself”) and (2) Convention Over Configuration, meaning Rails has a right and wrong way of doing things, and if you follow the Rails way, you shouldn’t have to… Read More
RSpec is a behavior-driven testing tool for the Ruby language. RSpec is used in test driven development (“TDD”), where the developer writes the test based on what s/he hopes the program will accomplish, and then creates the program to accomplish the goals of the test. While this would seem to create additional work for the… Read More