This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Created by JetBrains PhpStorm. | |
* User: Muhammet | |
* Date: 19.10.2011 | |
* Time: 05:47 | |
* To change this template use File | Settings | File Templates. | |
*/ | |
// Version.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MySQL. Versions 4.1 and 5.0 are recommended. | |
# | |
# Install the MYSQL driver | |
# gem install mysql2 | |
# | |
# Ensure the MySQL gem is defined in your Gemfile | |
# gem 'mysql2' | |
# | |
# And be sure to use new-style password hashing: | |
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEPRECATION WARNING: Arel::Visitors::VISITORS is deprecated and will be removed. | |
Database adapters should define a visitor_for method which returns the appropri | |
ate visitor for the database. For example, MysqlAdapter.visitor_for(pool) return | |
s Arel::Visitors::MySQL.new(pool). (called from mon_synchronize at C:/RailsInsta | |
ller/Ruby1.9.2/lib/ruby/1.9.1/monitor.rb:201) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WebSer::Application.routes.draw do | |
get "universities/index" | |
get "universities/list" | |
get "address/index" | |
get "address/provinces" | |
get "address/counties" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WebSer::Application.routes.draw do | |
devise_for :users | |
get "universities/index" | |
get "universities/list" | |
get "address/index" | |
get "address/provinces" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c:\Sites\web-ser>rake routes | |
new_user_session GET /users/sign_in(.:format) {:acti | |
on=>"new", :controller=>"devise/sessions"} | |
user_session POST /users/sign_in(.:format) {:acti | |
on=>"create", :controller=>"devise/sessions"} | |
destroy_user_session DELETE /users/sign_out(.:format) {:acti | |
on=>"destroy", :controller=>"devise/sessions"} | |
user_password POST /users/password(.:format) {:acti | |
on=>"create", :controller=>"devise/passwords"} | |
new_user_password GET /users/password/new(.:format) {:acti |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Services::AddressController < ApplicationController | |
respond_to :html, :xml, :json | |
def index | |
end | |
def provinces | |
@provinces=Province.all | |
respond_with(@provinces) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Services::AddressController < ApplicationController | |
respond_to :html, :xml, :json | |
def index | |
end | |
def provinces | |
@provinces=Province.all | |
respond_with(@provinces) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Sites\bitecek2>rails g model student | |
C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11-x86-mingw32/lib/mysql2/mysql2.rb:2:in `require': Incorrect MySQL client library version! This | |
gem was compiled for 6.0.0 but the client library is 5.5.13. (RuntimeError) | |
from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11- | |
x86-mingw32/lib/mysql2/mysql2.rb:2:in `<top (required)>' | |
from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11-x86-ingw32/lib/mysql2.rb:9:in `require' | |
from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11-x86-ingw32/lib/mysql2.rb:9:in `<top (required)>' | |
from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/runtime.rb:68:in `require' | |
from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/runtime.rb:68:in `block (2 levels) in require' | |
from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/runtim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'http://rubygems.org' | |
gem 'rails', '3.1.1' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'mysql2' | |
gem 'devise' |
OlderNewer