前回の記事を基に、Facebookで #sendagayarb の皆さんとディスカッションした内容をここに残しておきます。 前回までの流れ 以下の様なリソースがあった場合、どのようなURL/コントローラでmove_higherやmove_to_bottomメソッドを叩くのか、というお題。 from_README_Example.rb1 2 3 4 5 6 7 8 9 10 11 class TodoList < ActiveRecord::Base has_many :todo_items, order: "position" end class TodoItem < ActiveRecord::Base belongs_to :todo_list acts_as_list scope: :todo_list end todo_list.first.move_to_bottom todo_
How to use Questions to drive Generative Analysis By Jim ArlowOct 21, 2024Question is the Information Type that is the primary generator of all other Information Types in Generative Analysis. In this article, Jim Arlow expands on the discussion in his book and introduces the notion of the AbstractQuestion, Why, and the ConcreteQuestions, Who, What, How, When, and Where. Write a Requirement, not a
I'm using Simple Form here, but this is an issue with normal Rails forms, too. When using shallow routes, form_for needs different arguments depending in what context it's used. Example: For editing (http://localhost:3000/notes/2/edit), _form.html.erb needs to have simple_form_for(@note). But for creating a new note (http://localhost:3000/customers/2/notes/new) _form.html.erb needs simple_form_for
This domain is registered at NameSilo. If you are the owner, start administering it at NameSilo.com. If this is not your domain, find similar names that work for you. This webpage was generated by the domain owner using Sedo Domain Parking. Disclaimer: Sedo maintains no relationship with third party advertisers. Reference to any specific service or trade mark is not controlled by Sedo nor does it
restful_authentication を導入したので手順などメモっときます。 restful_authentication ・ログインなどのセッション管理を行なう Rails プラグイン ・メールによる認証登録ができる ・セッション状態を acts_as_state_machine で管理することが可能 ・acts_as_authenticated を置き換えるプラグインらしい(参照) ・eringi.com「acts_as_authenticated を試してみた。」 acts_as_state_machine のインストール >ruby script/plugin install http://elitists.textdriven.com/svn/plugins/acts_as_state_machine/trunk/ restful_authentication のインスト
以前は専らlogin_engine、user_engineのお世話になっていたのだが、Rails2.0以降は手軽に利用できる環境ではなくなってしまった...。ということで、restful_authenticationを利用したログイン管理を試してみることに。 todoプロジェクトの作成(The making of the ToDo project) いつもの手順で実験用にtodoプロジェクトをサクッと作る。 I made a ToDo project for experiments quickly. $ rails todo $ cd todo $ script/generate scaffold todo body:string due:date done:boolean $ rake db:migrate $ script/server これだけでちゃんと動いてしまうんだから、便利にな
restful_authentication プラグインのメモ。検証は Rails 2.0.2 で行っています。 プラグインについて RESTful なユーザ認証を行う事ができます。 通常のセッションを用いた認証、ベーシック認証、 Cookie による認証が利用できます。特に Cookie を用いた認証は、ブラウザを閉じた場合でも有効期間内なら有効になります(設定有効時)。 インストール プラグインをインストールします。Rails 1.2.6 以降でないと動作しないので注意して下さい。 また、 authenticated_system.rb は RAILS_ROOT/lib 以下に展開されます。 ruby script/plugin install http://svn.techno-weenie.net/projects/plugins/restful_authentication/追記
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く