You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.
my gem file
gem 'rails', '4.2.4'
gem 'mysql2','
> 0.3.20'> 5.0'gem 'sass-rails', '
gem 'devise'
gem "nifty-generators", :group => :development
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '
> 4.1.0'> 2.0'gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '
gem 'sdoc', '~> 0.4.0', group: :doc
migrations
class DeviseCreateUsers < ActiveRecord::Migration
def change
create_table(:users) do |t|
## Database authenticatable
t.string :email, null: false, default: ""
t.string :encrypted_password, null: false, default: ""
t.timestamps null: false
end
end
end
my model
class User < ActiveRecord::Base
Include default devise modules. Others available are:
:confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
validates :email, :presence => true, :uniqueness => true
my routes file
Rails.application.routes.draw do
devise_for :users
root :to => "home#index"
end
my controller
class HomeController < ApplicationController
def index
end
end
my view
hellow to index
end
I am following this tutorial
http://code.tutsplus.com/tutorials/build-a-dropbox-like-file-sharing-site-with-ruby-on-rails--net-17940
but nifty layout is not working..i need to know whether it works with rails 4.2.2 or not if not then what is the solution
The text was updated successfully, but these errors were encountered: