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
@masuidriveãã¨å¢äºãããè¬æ¼ãããã¨è¨ããã¨ã ã£ãã®ã§ã2011å¹´ã¯ãRails3ã使ããï¼ãmasuidriveã«å¦ã¶ã«åå ãã¦ãã¾ããã åå¿é²ãã¦ãã¡ã¢ãããã¦ããã¾ãã 第1é¨ãRails3æ å ±æºã®æ©ãæ¹ããå ¬å¼ãµã¤ãã®æ©ãæ¹ããå®çªãµã¤ããå¿ è¦ã³ã³ãã³ãã¾ã§ä¸æãç´¹ä»ï¼è¥¿æè³¢æ°ï¼ @knsmrãã¨è¥¿æè³¢ãã Ruby on Rails ã¯è±èªæ å ±ãè±å¯ Rails Document ã® Rails Guidsããªã¹ã¹ã¡ Ruby, Railsã«ã¯ãã¹ãæåãããããã°ããã ãããã©ã°ã¤ã³ãç¥ãããã£ãããAsakusa.rbã«åå ããã¨ãã ã¸ã£ã³ã«å¥ãªãRuby Tool Boxãè¦ãã¨ãã Rails3ã§åãã確èªããã«ã¯ãRailsPlugins.orgã§äºææ§ã確èªããã¨ããã screencastsãè±å¯ railscasts, asciicasts, D
Rails 3 introduced a new routing DSL that is a little bit different from the Rails 2 version. This quick guide covers a few examples of the new routes, and how they compare to Rails 2. Simple routes Create a basic route that will respond to http://localhost:300/hello_world # Rails 2: map.connect 'hello_world', :controller => 'posts', :action => 'index' # Rails 3: match 'hello_world' => 'posts#inde
Devise ã® README ã¯æåä¸å¯§ã ãããã®åã¯ã½é·ãã®ã§ãèªãã®ã«ç²ãããå¾ç¶ã®ããã«è¨³ãã¦ã¿ããã¨ã«ãããç¡ä¿è¨¼ãOAuth2 ã®é¨åã¯é£ã°ãããé·ãããå·®ãè¿«ã£ãã訳ãã¾ãã Devise Devise 㯠Warden ããã¼ã¹ã«ãã Rails ã®ããã®ãã¬ãã·ãã«ãªèªè¨¼ã½ãªã¥ã¼ã·ã§ã³ã§ãã Rackãã¼ã¹ Rails ã¨ã³ã¸ã³ã«åºã¥ããå®å ¨ãª MVC ã½ãªã¥ã¼ã·ã§ã³ 1åã®èªè¨¼ã§è¤æ°ã®ãã¼ã«ãæããããã¨ãã§ãã¾ã ããªããå¿ è¦ãªé¨åã ã使ããã¢ã¸ã¥ã©ã¼æ§é ã¨ããã³ã³ã»ããã«åºã¥ãã¦ãã¾ã 以ä¸ã®11ã®ã¢ã¸ã¥ã¼ã«ã§æ§æããã¦ãã¾ãï¼ Database Authenticatable ã¦ã¼ã¶ã¼ããµã¤ã³ã¤ã³ããæã«èªè¨¼ããããã«ãã¹ã¯ã¼ãããã¼ã¿ãã¼ã¹ã«æå·åãä¿åãã¾ãããã®èªè¨¼ã¯ POST ãªã¯ã¨ã¹ãã¾ãã¯Basicèªè¨¼ãéãã¦è¡ããã¾ãã Token Authenti
â [ruby] Sinatra 1.0ãRuby 1.9.2ã§åããªãåé¡ 1.9.2ã§Sinatraãåããã¨ãä½ãè¨ããã«çµäºãã¦ãã¾ããã ãã© enable :run ã¨ä¸è¡å ¥ããã°OKã http://ruby.about.com/b/2010/09/08/sinatra-not-working-on-1-9-2.htm â [rails] deviseã®ã¡ãã»ã¼ã¸ãæ¥æ¬èªåãã¾ãã Rails3ã®å®çªã¨ãªããããªèªè¨¼ãã©ã°ã¤ã³ãdeviseã®æ¥æ¬èªç¨ãã±ã¼ã«ãã¡ã¤ã«ãä½ãã¾ããã http://gist.github.com/606476 deviseã®ç¿»è¨³ã¯ãªãã¸ããªã«åãè¾¼ããããããªãã¦ããgistã«æ稿ãã¦wikiã«è²¼ã£ã¦ããã¨ããç·©ãæ¹å¼ãããã®ã§ã追å ãã¦ããã¾ããã http://github.com/plataformatec/devise/wiki/I18n
In Rails 3.0, you can use custom validator in your active_record model. So I wanted to manage email validations without regexp matching like others do. I find a new way to make this work thanks to ruby mail gem, a dependency of Rails 3.0 class User < ActiveRecord::Base validates :email, :presence => true, :email => true end Just put a file in app/validators/email_validator.rb require 'mail' clas
This feature is schedule for: Rails v3.0 REST is a first-class citizen in the Rails world, though most of the hard work is done at the routing level. The controller stack has some niceties revolving around mime type handling with the respond_to facility but, to date, thereâs not been a lot built into actionpack to handle the serving of resources. The addition of respond_with takes one step towards
ã¯ããã« Rails3.0.0ããªãªã¼ã¹ããã¦ã2ã¶æï¼2010å¹´10ææ«ç¾å¨ï¼ãçããRails3ã©ã¤ããæºå«ãã¦ãã¾ããï¼ Rails3ãã¯ããã¦ã¨ããæ¹ãããã¥ã¢ã«ããªãã¡ã¬ã³ã¹æ¢ãã«è¦å´ããã¦ãã¾ãããï¼ Rails3ã§ã³ã¼ããæ¸ãã¦ããã¨ãã©ãããã°ããã®ããªï¼ã¨ãããã¨ããã°ãã°ãã£ã¦ãèªåãªãã«åç §ãããµã¤ããªã©ãã¾ã¨ã¾ã£ã¦ããã®ã§ãä»æ¥ã¯èªåãåç §ããé çªã«ãURLãæãã¦ããã¾ããå°ãã§ãåèã«ãªãã°å¹¸ãã§ãã ããã Rails Searchable API Doc Google â Search by date Rails 3 Ropes Course Railscasts â rails-3.0 episodes Ruby on Rails Guides Github â Search: rails3 example OâREILLY â Rails3 in a N
Posted by irohiroki Sun, 29 Aug 2010 09:15:00 GMT Rails 3ã§ã¯routesã®DSLãå®å ¨ã«å·æ°ããã¾ãããç¹ã«ããã®è¦é£ãã£ãããã·ã¥ã®å¡ã解ããã¦ã:memberã:getãªã©äºç´èªã®å½¹å²ããã¦ããã·ã³ãã«ã¯ãã£ã¬ã¯ãã£ãã«ãªãã¾ãããä¾ãã°Rails 2ã®ä»¥ä¸ã®è¨è¿°ã¯ map.resources :users, :member => {:foo => :get}, :collection => {:bar => :post}
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}