Permalink
Browse files

Necessary Changes

  • Loading branch information...
1 parent 7278add commit 3081337256395930dd59dbaec39a7f8580dbb181 @nvijayap committed Jan 10, 2014
View
@@ -1,18 +1,16 @@
-*.rbc
-*.sassc
-.sass-cache
-capybara-*.html
-.rspec
-.rvmrc
+# See https://help.github.com/articles/ignoring-files for more about ignoring files.
+#
+# If you find yourself ignoring temporary files generated by your text editor
+# or operating system, you probably want to add a global ignore instead:
+# git config --global core.excludesfile '~/.gitignore_global'
+
+# Ignore bundler config.
/.bundle
-/vendor/bundle
-/log/*
-/tmp/*
+
+# Ignore the default SQLite database.
/db/*.sqlite3
-/public/system/*
-/coverage/
-/spec/tmp/*
-**.orig
-rerun.txt
-pickle-email-*.html
-.project
+/db/*.sqlite3-journal
+
+# Ignore all logfiles and tempfiles.
+/log/*.log
+/tmp
View
@@ -1,7 +1,7 @@
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
-gem 'rails', '4.0.0'
+gem 'rails', '4.0.2'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
View
@@ -1,25 +1,25 @@
GEM
remote: https://rubygems.org/
specs:
- actionmailer (4.0.0)
- actionpack (= 4.0.0)
- mail (~> 2.5.3)
- actionpack (4.0.0)
- activesupport (= 4.0.0)
+ actionmailer (4.0.2)
+ actionpack (= 4.0.2)
+ mail (~> 2.5.4)
+ actionpack (4.0.2)
+ activesupport (= 4.0.2)
builder (~> 3.1.0)
erubis (~> 2.7.0)
rack (~> 1.5.2)
rack-test (~> 0.6.2)
- activemodel (4.0.0)
- activesupport (= 4.0.0)
+ activemodel (4.0.2)
+ activesupport (= 4.0.2)
builder (~> 3.1.0)
- activerecord (4.0.0)
- activemodel (= 4.0.0)
+ activerecord (4.0.2)
+ activemodel (= 4.0.2)
activerecord-deprecated_finders (~> 1.0.2)
- activesupport (= 4.0.0)
+ activesupport (= 4.0.2)
arel (~> 4.0.0)
activerecord-deprecated_finders (1.0.3)
- activesupport (4.0.0)
+ activesupport (4.0.2)
i18n (~> 0.6, >= 0.6.4)
minitest (~> 4.2)
multi_json (~> 1.3)
@@ -51,22 +51,22 @@ GEM
treetop (~> 1.4.8)
mime-types (1.25.1)
minitest (4.7.5)
- multi_json (1.8.2)
+ multi_json (1.8.4)
polyglot (0.3.3)
rack (1.5.2)
rack-test (0.6.2)
rack (>= 1.0)
- rails (4.0.0)
- actionmailer (= 4.0.0)
- actionpack (= 4.0.0)
- activerecord (= 4.0.0)
- activesupport (= 4.0.0)
+ rails (4.0.2)
+ actionmailer (= 4.0.2)
+ actionpack (= 4.0.2)
+ activerecord (= 4.0.2)
+ activesupport (= 4.0.2)
bundler (>= 1.3.0, < 2.0)
- railties (= 4.0.0)
+ railties (= 4.0.2)
sprockets-rails (~> 2.0.0)
- railties (4.0.0)
- actionpack (= 4.0.0)
- activesupport (= 4.0.0)
+ railties (4.0.2)
+ actionpack (= 4.0.2)
+ activesupport (= 4.0.2)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.1.1)
@@ -111,7 +111,7 @@ DEPENDENCIES
coffee-rails (~> 4.0.0)
jbuilder (~> 1.2)
jquery-rails
- rails (= 4.0.0)
+ rails (= 4.0.2)
sass-rails (~> 4.0.0)
sdoc
sqlite3
View
@@ -3,4 +3,4 @@
require File.expand_path('../config/application', __FILE__)
-Spellcheck::Application.load_tasks
+RailsSpellcheck::Application.load_tasks
@@ -1,22 +0,0 @@
-#
-# SpellCheckController
-#
-class SpellCheckController < ApplicationController
-
- #
- # view
- #
- def view
- word = params[:q]
- word = "" if word.nil?
-
- if MyWords.words.has_key? word.downcase
- params[:yn] = true
- else
- params[:yn] = false
- end
-
- render
- end # view
-
-end # SpellCheckController
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <title>Spellcheck</title>
+ <title>RailsSpellcheck</title>
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
<%= csrf_meta_tags %>
@@ -1,14 +0,0 @@
-<br/>
-<%= form_tag("/spellcheck", method: "post") do %>
- <% if params[:q] %>
- <% if params[:yn] %>
- <%= "'" + params[:q] + "' has passed Spell Check "%>
- <% else %>
- <%= "'" + params[:q] + "' has FAILED Spell Check "%>
- <% end %>
- <% end %>
- <br/><br/>
- <%= label_tag(:q, "Word:") %>
- <%= text_field_tag(:q) %>
- <%= submit_tag("SpellCheck") %>
-<% end %>
View
@@ -6,7 +6,7 @@
# you've limited to :test, :development, or :production.
Bundler.require(:default, Rails.env)
-module Spellcheck
+module RailsSpellcheck
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
View
@@ -2,4 +2,4 @@
require File.expand_path('../application', __FILE__)
# Initialize the Rails application.
-Spellcheck::Application.initialize!
+RailsSpellcheck::Application.initialize!
@@ -1,4 +1,4 @@
-Spellcheck::Application.configure do
+RailsSpellcheck::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
@@ -1,4 +1,4 @@
-Spellcheck::Application.configure do
+RailsSpellcheck::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# Code is not reloaded between requests.
@@ -1,4 +1,4 @@
-Spellcheck::Application.configure do
+RailsSpellcheck::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# The test environment is used exclusively to run your application's
@@ -1,3 +1,3 @@
# Be sure to restart your server when you modify this file.
-Spellcheck::Application.config.session_store :cookie_store, key: '_spellcheck_session'
+RailsSpellcheck::Application.config.session_store :cookie_store, key: '_rails_spellcheck_session'
View
@@ -1,16 +1,15 @@
-Spellcheck::Application.routes.draw do
-
- get 'spellcheck' => 'spell_check#view'
- post 'spellcheck' => 'spell_check#view'
+RailsSpellcheck::Application.routes.draw do
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
# You can have the root of your site routed with "root"
- # root 'welcome#index'
+ # root 'spellcheck#view'
# Example of regular route:
# get 'products/:id' => 'catalog#view'
+ get 'spellcheck' => 'spellcheck#view'
+ post 'spellcheck' => 'spellcheck#view'
# Example of named route that can be invoked with purchase_url(id: product.id)
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase

0 comments on commit 3081337

Please sign in to comment.