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.
5 comments
6 comments
Rails: Rename a Database/Table Column
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.
15 comments
Rails: Uploading Photos via Amazon S3 and Paperclip
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.
8 comments
:remote => true in Rails Forms
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.
6 comments
Rails Tutorial: Authentication with Devise
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.
33 comments
Creating a Simple Search in Rails 4
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.
1 comment
Adding a Static Page to a Rails Application
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.
31 comments
Rails: Generate Model vs. Resource vs. Scaffold
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.
6 comments
Rails Tutorial: Getting Started with Ruby on Rails
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
1 comment
The Importance of Web Application Security
Last week, I deployed my first web applications, a big moment in any developer’s life. One app, a guestbook for my friend’s wedding, was written in Ruby, dependent on the Sinatra gem and deployed through Heroku. It consisted of a simple form where friends and family could leave messages for the happy couple. I excitedly… Read More