Koren Leslie Cohen

  • About
  • Blog
  • Contact

5 comments

Ruby / Rails

Rails: Devise Redirects (and how to Customize Devise)

January 1, 2015 by Koren Leslie Cohen

devise redirects

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.

6 comments

Ruby / Rails

Rails: Rename a Database/Table Column

December 21, 2014 by Koren Leslie Cohen

devise redirects

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

Ruby / Rails

Rails: Uploading Photos via Amazon S3 and Paperclip

December 21, 2014 by Koren Leslie Cohen

preloader

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

Ruby / Rails

:remote => true in Rails Forms

December 2, 2014 by Koren Leslie Cohen

rails

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

Ruby / Rails, Tutorials

Rails Tutorial: Authentication with Devise

October 19, 2014 by Koren Leslie Cohen

rails

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

Ruby / Rails

Creating a Simple Search in Rails 4

July 20, 2014 by Koren Leslie Cohen

rails

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

Ruby / Rails

Adding a Static Page to a Rails Application

July 20, 2014 by Koren Leslie Cohen

preloader

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

Ruby / Rails

Rails: Generate Model vs. Resource vs. Scaffold

July 15, 2014 by Koren Leslie Cohen

front end engineer interview questions

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

Ruby / Rails, Tutorials

Rails Tutorial: Getting Started with Ruby on Rails

July 14, 2014 by Koren Leslie Cohen

javascript array methods

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

0 comments

Ruby / Rails, TDD, Tutorials

A Beginner’s Guide To RSpec

June 24, 2014 by Koren Leslie Cohen

devise redirects

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

  • GitHub
  • Instagram
  • LinkedIn
  • RSS
  • Twitter

Looking for something?

Copyright 2025 Koren Leslie Cohen