【RoR】Ruby on Rails Part12
■ このスレッドは過去ログ倉庫に格納されています
0001nobodyさん
2011/07/19(火) 13:44:46.30ID:zxrusyvr【Ruby】Ruby on Rails Part11
http://hibari.2ch.net/test/read.cgi/php/1292032736/
■参考サイト
<英語>
本家:http://rubyonrails.org
API document:http://api.rubyonrails.com/
開発者のblog:http://weblog.rubyonrails.org/
参考wiki:http://wiki.rubyonrails.org/rails
http://ruby-toolbox.com/
http://rubygems.org/
http://agilewebdevelopment.com/plugins/top_rated
<日本語>
Rails' wiki: http://wiki.fdiary.net/rails/
http://twitter.com/dhh
http://www.loudthinking.com/
0202nobodyさん
2011/08/04(木) 00:22:44.82ID:pv4SsPe4http://d.hatena.ne.jp/tkng/20080811/1218442298
SpecialWarningというプラグイン
http://d.hatena.ne.jp/authorNari/20090205/1233840189
N+1問題などを監視してパフォーマンスを改善するRailsプラグインBullet
http://blog.digital-squad.net/article/149685338.html
複合キー
compositekeys ActiveRecord Composite Primary Keys
http://compositekeys.rubyforge.org/
0203nobodyさん
2011/08/04(木) 08:29:30.03ID:pv4SsPe4http://railscasts.com/episodes/176-searchlogic
Episode 111: Advanced Search Form
http://railscasts.com/episodes/111-advanced-search-form
Make searching and ordering data in your application trivial
https://github.com/binarylogic/searchlogic
rails searchlogic plugin search in multiple columns - ruby-on-rails - DoExpert
http://www.doexpert.net/a/4e1754e4592b0a27c02867dc
http://b.hatena.ne.jp/t/searchlogic?sort=eid
0204nobodyさん
2011/08/04(木) 21:59:32.24ID:pv4SsPe4http://b.hatena.ne.jp/entry/www.publickey1.jp/blog/11/twitterruby_on_railsjavavm.html
http://d.hatena.ne.jp/teppei-studio/20110709/1310168002
http://yebo-blog.blogspot.com/2011/08/twitterruby-on-railsjvm.html
0205nobodyさん
2011/08/05(金) 01:03:33.16ID:Vv89ZuLFhttp://d.hatena.ne.jp/passingloop/20110801/p1
0206nobodyさん
2011/08/05(金) 01:33:38.19ID:Vv89ZuLFrailties/lib/rails/engine.rb at master from rails/rails - GitHub
https://github.com/rails/rails/blob/master/railties/lib/rails/engine.rb
0207nobodyさん
2011/08/05(金) 06:41:16.51ID:Vv89ZuLF100万種類のトレーディングカードがあり、15枚1セット525円で販売されています。
全ての種類をコンプリートするまで買い続けるとき、かかる費用の期待値はいくらになるでしょうか。
ただし、1セットには全て重複なしのバラバラのカードがランダムに入っているものとします。
答えは小数点以下を切り捨てて整数で求めてください。
http://iridge.jp/recruit/quiz/
http://iridge.jp/company/members/
0208143
2011/08/05(金) 13:05:10.41ID:kWLQpcrd完成したので、DBをPostgreに移行しようと思い、yaml_dbというプラグインで
rake db:load RAILS_ENV=development
とし、db/data.yamlファイルを作成しました。
config/database.yamlを
development:
adapter: postgresql
encoding: unicode
database: vegetables_development
pool: 5
username: hoge
password: fuga
とし、
Postgre上でDB、vegetables_development(同test同production)を作成。
rake db:load RAILS_ENV=development
を実行すると、
rake aborted! PGError: ERROR: relation "users" does not exist
というエラーが出ます。(この"users"というのはログイン認証用のTableです)
rake db:migrateを実行しても同じです。
別のRailsを作って、スカッフォード→db:migrateしたら正常に動くので
Postgre⇔Rails間は正常に動いていると思います。
rails2.3.8
rake0.8.7
pg0.11
0209nobodyさん
2011/08/05(金) 13:25:20.81ID:???url から controller と action を取得することは可能なんでしょうか?
0210nobodyさん
2011/08/05(金) 14:03:38.80ID:???0211209
2011/08/05(金) 14:25:08.62ID:???そのようんですね。自己解決しました。
url = url_for(options)
ca = ActionController::Routing::Routes.recognize_path(URI.parse(url).path, {:method => :get})
controller, action = ca[:controller], ca[:action]
rails 2.8 だとこれでとれました。
0212143
2011/08/05(金) 16:02:18.18ID:kWLQpcrdrake db:load RAILS_ENV=development --traceの実行結果です。
(in /home/rails/vegetables)
DEPRECATION WARNING: Rake tasks in vendor/plugins/yaml_db/tasks are deprecated. Use lib/tasks instead. (called from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/tasks/rails.rb:10)
** Invoke db:load (first_time)
** Invoke db:schema:load (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
PGError: ERROR:relation "users" does not exist
: SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract_adapter.rb:221:in `log'
・
・
・
というかんじです。
0213nobodyさん
2011/08/06(土) 21:59:29.22ID:MeG5w6yRクラウド時代のアーキテクチャ設計
http://www.slideshare.net/kentamagawa/ss-8786548
スケールアウトからスケールアップへの回帰:江島健太郎 / Kenn’s Clairvoyance - CNET Japan
http://japan.cnet.com/blog/kenn/2010/01/12/entry_27036420/
ウェブアプリケーションサーバを複数台構成とか2010年代には流行らない - kazuhoのメモ置き場
http://d.hatena.ne.jp/kazuhooku/20091226/1261838127
Togetter(トゥギャッター) - まとめ「700万PVのRails製サイトが月$60のVPS(メモリ1GB)で動かせるという話」
http://togetter.com/li/4514
0214nobodyさん
2011/08/07(日) 08:52:16.01ID:???$60とかアホ
0215nobodyさん
2011/08/07(日) 08:53:16.14ID:???しかも1年半前の記事じゃねーか死ねヴォケ!
0216nobodyさん
2011/08/07(日) 11:26:45.92ID:???0217nobodyさん
2011/08/07(日) 13:27:17.63ID:m3JRgASRhttp://curiosity-drives.me/programming/rails/rails3-useful-gems/
0218nobodyさん
2011/08/08(月) 01:37:41.60ID:MisXO1oahttp://blog.madoro.org/mn/84
0219nobodyさん
2011/08/08(月) 01:44:42.19ID:MisXO1oahttp://www.ustream.tv/recorded/16445421
0220nobodyさん
2011/08/09(火) 05:12:01.97ID:HfOK6pTFhttp://www.paperboy.co.jp/recruit/job/dazaifu_engineer_f.php
0221nobodyさん
2011/08/09(火) 11:22:34.35ID:HfOK6pTFhttp://www.infiniteloop.co.jp/blog/2011/04/titanium_mobile/
0222143
2011/08/09(火) 11:48:50.26ID:fDKK4Lp7お願いします。
0223143
2011/08/09(火) 11:52:40.83ID:fDKK4Lp7rake db:schema:load --trace
でも >>210 とおなじエラーになります。
database.yamlをaqlite3に戻すと正常に動くしloadもmigrateも上書きできるので
schemaやmigrateのファイルがおかしい訳ではないと思うのですが・・・。
0224nobodyさん
2011/08/09(火) 12:53:24.30ID:fDBHDCIPRMagickを使ってみたいのですが、
\app\controllers\images_controller.rbの冒頭にrequire 'RMagick'を入れているのですがエラーになります
This error occurred while loading the following files: RMagick
Rubyは、Ruby1.87
RMagickは、rmagick-2.12.0-x86-mswin32.gem
をgemでインストールしてあり、
Ruby187\lib\ruby\gems\1.8\gems\rmagick-2.12.0-x86-mswin32
にbinをはじめファイルがあることを確認しています。
Windows7 64bitです。よろしく、お願いします。
0225nobodyさん
2011/08/09(火) 16:47:32.70ID:???・require 'RMagick' の前に、require 'rubygems'を入れてみる。
・コマンドプロンプトで gem list を打ったら rmagickがリストアップされるか。
・そもそも image magickは入っているか。(rmagickはimagemagickのラッパー)
0226143
2011/08/09(火) 17:09:55.32ID:fDKK4Lp7以下のことを行いました。
1. bundle、yaml_db、pgを再インストール再実行
→特に症状変わらず
2. DEPRECATION WARNING: Rake tasks in vendor/plugins/yaml_db/tasks are deprecated. Use lib/tasks instead. (called from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/tasks/rails.rb:10)
対策として、vendor/plugins/yaml_db/tasksをリネーム
→エラー表示が下記に変わった
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
uninitialized constant Rails::Railtie
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:440:in `load_missing_constant'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:80:in `const_missing'
/usr/lib/ruby/gems/1.8/gems/rspec-rails-2.6.1/lib/rspec-rails.rb:3
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
・
・
・
(以下略)
冒頭の「uninitialized constant Rails::Railtie」というエラーが気になるのですが
ググッても有効な情報がない&英語でよくわからない、という情けない状況です。
何卒、お助け下さい
0227143
2011/08/09(火) 17:47:56.27ID:fDKK4Lp7Passengerの表示するエラーです。
There appears to be a database problem.
1.Your config/database.yml may not be written correctly. Please check it and fix any errors.
database.ymlは以下です(userとpasswordは変更してます)
development:
adapter: postgresql
encoding: unicode
database: vegetables_development
pool: 5
username: hoge
password: fuga
2.Your database schema may be out of date or nonexistant. Please run rake db:migrate to ensure that the database schema is up-to-date.
migrateすると上記エラーが出ます
3.The database server may not be running. Please check whether it's running, and start it if it isn't.
postgresqlをrestartしても状況は変わりません。
正常に起動します。
rake db:createをするとalredy existと出るので、動いてる&認証もOK&railsからアタッチも出来ていると思います。
0228224
2011/08/09(火) 22:19:39.48ID:fDBHDCIP224です。さっそくのアドバイス、ありがとうございます。まだ、同じエラーが出ています。
>・require 'RMagick' の前に、require 'rubygems'を入れてみる。→ 入れました。
>・コマンドプロンプトで gem list を打ったら → rmagick (2.12.0 mswin32, 1.14.1 win32)とリストアップされました。
>・そもそも image magickは入っているか。→ 入っていて、環境変数のPathにインストールしたパス、"J:\ImageMagick-6.5.6-Q8"が入っています。
何か、分かりましたら、よろしく、お願いします。
0229nobodyさん
2011/08/10(水) 03:21:50.16ID:u2UyTfAehttp://b.hatena.ne.jp/t/accepts_nested_attributes_for
0230nobodyさん
2011/08/10(水) 08:22:27.55ID:u2UyTfAehttp://ja.wikipedia.org/wiki/渡り鳥
0231nobodyさん
2011/08/10(水) 09:43:08.69ID:???http://www.amazon.co.jp/gp/product/4797359730
0232nobodyさん
2011/08/10(水) 14:48:08.50ID:u2UyTfAe0233nobodyさん
2011/08/11(木) 08:58:31.97ID:HyFoc2Xo0234nobodyさん
2011/08/11(木) 10:41:08.00ID:HyFoc2Xohttp://www.slideshare.net/nippondanji/performance-schema-mysql-casual-2
0235nobodyさん
2011/08/11(木) 10:54:12.80ID:???古いgemファイルがどんどん残っていくじゃないですか
(bundlerのインストールポイントを指定していた場合)
あれをきれいに消す良い方法はないのでしょうか。
0236nobodyさん
2011/08/11(木) 11:20:02.73ID:???ぐぐれよ
0237nobodyさん
2011/08/11(木) 12:19:23.40ID:???0238nobodyさん
2011/08/11(木) 20:54:01.86ID:97Y8lSst> bundlerのインストールポイントを指定していた場合
--path vendor/bundle みたいな場合ってことだよね?
削除してもう一回bundleするくらいじゃねーの?
0240nobodyさん
2011/08/12(金) 17:49:40.78ID:jOqVfl+Yhttp://www.railshosting.org/the-top-10-sites-built-with-ruby-on-rails
0241nobodyさん
2011/08/14(日) 08:09:08.22ID:l8hCtuX0http://sixrevisions.com/web-development/how-to-create-a-blog-from-scratch-using-ruby-on-rails/
0242nobodyさん
2011/08/14(日) 10:17:03.37ID:l8hCtuX0<%= time_ago_in_words(c.created_at) %> ago
http://sixrevisions.com/web-development/how-to-create-a-blog-from-scratch-using-ruby-on-rails/
time_ago_in_words 便利すぎて死ぬ
http://twitter.com/#!/jugyo/statuses/18018918489
http://twitter.com/#!/kuruma3/statuses/40940285026504704
http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html
0243nobodyさん
2011/08/14(日) 10:27:06.94ID:l8hCtuX0http://web7s.com/blog/111
http://d.hatena.ne.jp/sai-ou89/20080715
0244nobodyさん
2011/08/14(日) 12:21:51.31ID:l8hCtuX0truncate("Once upon a time in a world far far away")
# => "Once upon a time in a world..."
http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#method-i-truncate
0245nobodyさん
2011/08/14(日) 15:25:33.35ID:l8hCtuX0# => "Go to <a href=\"http://www.rubyonrails.org\">http://www.rubyonrails.org</a> and
# say hello to <a href=\"mailto:[email protected]\">[email protected]</a>"
http://apidock.com/rails/ActionView/Helpers/TextHelper/auto_link
0246nobodyさん
2011/08/14(日) 16:14:02.18ID:???0247nobodyさん
2011/08/14(日) 18:03:24.56ID:???Post body:(etc 花子さんと遊んだ,私は花子です) id:primary user_id:integer
こういう状況で
Post.body及びUser.nameから ”花子” を検索して発言者が”花子” or 投稿内容に”花子”が含まれる
投稿(=Post)を検索して一覧表示&ページングをしたいです
花子が一人しかいないならば
user = User.find_by_name("花子")
#conditions => ["user_id = ? OR body LIKE ?" , user.id.to_s , "%#{@keyword}%"]
で取得できるのですが
山田花子
田中花子
と花子はたくさん居ます
最悪Postに名前を追加することも考えたのですが
花子さんが名前を変更したときにとても面倒くさいことになるのでどうにか追加せずに行いたいです
何かいい方法はありませんか?
0249nobodyさん
2011/08/14(日) 22:50:48.17ID:???Rails2.x
posts = Post.find(:all, :include => 'user', :conditions => ['user.name = ? OR post.body LIKE ?', @keyword, "%#{@keyword}%"])
Rails3.x
posts = Post.include(:user).where('user.name = ? OR post.body LIKE ?', @keyword, "%#{@keyword}%").all # 最後の .all は必要ない場合もある
未実行なのでミスがあるかもしれんが、そこは適当に
0250nobodyさん
2011/08/15(月) 01:02:45.45ID:5JDlDFBi0251nobodyさん
2011/08/15(月) 06:19:58.66ID:???http://d.hatena.ne.jp/micdonalds/20101115/1289819697
ActiveRecordのfindで、:includeと:joinsを使ったときの違いって? - 超初心者のロボット製作日記
http://d.hatena.ne.jp/abikounso/20090528/1244798163
0252nobodyさん
2011/08/15(月) 11:12:35.38ID:???http://d.hatena.ne.jp/moro/20080630/1214800838
Searchlogic
http://railscasts.com/episodes/176-searchlogic
Episode 111: Advanced Search Form
http://railscasts.com/episodes/111-advanced-search-form
Make searching and ordering data in your application trivial
https://github.com/binarylogic/searchlogic
rails searchlogic plugin search in multiple columns - ruby-on-rails - DoExpert
http://www.doexpert.net/a/4e1754e4592b0a27c02867dc
http://b.hatena.ne.jp/t/searchlogic?sort=eid
0253nobodyさん
2011/08/15(月) 16:00:37.80ID:CyQXpCdY使っているみなさんBDDでの開発って何処までできているのでしょう?
振る舞い駆動開発って、仕様を策定する側は、何も無い状態から自分が何をしたいのかが
かなり詳細に指定できて
実装側はプログラムという複雑なものを漏れなく設計できるって言う仮定が暗にあるように見えます
そんな都合の良い現実なんてプロジェクトが10あったら1個か2個だけだと思うので
BDDの有効さは認めるとして、多数派にはなりえない様に感じたのですが
他の皆さんのご意見がどうでしょうか?
0254nobodyさん
2011/08/15(月) 16:29:36.08ID:???> そんな都合の良い現実なんてプロジェクトが10あったら1個か2個だけだと思うので
この部分、どういう意味で「そんな都合の良い現実は少ない」と言ってるのかわからんので、
なんとも言いようがない
現実はどんな問題があってBDDを採用しにくいのか、まずはそこを分析してほしいな
0255nobodyさん
2011/08/15(月) 17:23:51.58ID:???http://www.slideshare.net/dara/pluginrails
スリムになったSearchlogic v2をいじってみた - MothProgのうしろがわ
http://d.hatena.ne.jp/mothprog/20090819/1250692210
テッチャン☆ぶろぐ: [Rails]searchlogic v2でテーブルのソート的なもの。
http://shasou.blogspot.com/2010/02/railssearchlogic-v2.html
0256nobodyさん
2011/08/16(火) 01:05:10.59ID:???0257nobodyさん
2011/08/16(火) 13:31:33.73ID:???芯から始める
http://d.hatena.ne.jp/ruedap/20110318/rework_37signals_dhh_book_sentence
クックパッドのものづくり
Best なことに集中する
http://www.sssg.org/blogs/naoya/archives/1126
0258nobodyさん
2011/08/16(火) 19:44:04.14ID:???http://sl33p3r.free.fr/tutorials/rails/wiki/wiki-en.html
Agile RSS Aggregator in Ruby - igvita.com
http://www.igvita.com/2007/03/22/agile-rss-aggregator-in-ruby/
0259nobodyさん
2011/08/16(火) 20:41:32.18ID:???http://devml.blogspot.com/2009/06/textmate-20.html
0260nobodyさん
2011/08/16(火) 21:53:11.17ID:???C:\rails\calendar>rails plugin install git://github.com/elevation/event_calendar.git
C:\rails\calendar>rails generate event_calendar
C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.9/lib/rails/plugin.rb:87:in `block
in <class:Plugin>': "event_calendar" is a Railtie/Engine and cannot be installed
as a plugin (RuntimeError)
0261nobodyさん
2011/08/17(水) 10:42:39.37ID:???http://weblog.rubyonrails.org/2011/8/16/ann-rails-2-3-14
Riding Rails: [ANN] Rails 3.0.10
http://weblog.rubyonrails.org/2011/8/16/ann-rails-3-0-10
Riding Rails: [ANN] Rails 3.1.0.rc6
http://weblog.rubyonrails.org/2011/8/16/ann-rails-3-1-0-rc6
0262nobodyさん
2011/08/17(水) 11:37:48.38ID:???http://fazibear.googlepages.com/blogger.html
クリボウの Blogger Tips: コードをハイライトする「Blogger Syntax Highlighter」ウィジェット
http://www.kuribo.info/2008/06/blogger-syntax-highlighter.html
0263nobodyさん
2011/08/18(木) 16:37:32.92ID:???http://blog.envylabs.com/Rails_3_Cheat_Sheets.pdf
Downloading - Added Bytes by Dave Child
http://www.addedbytes.com/download/ruby-on-rails-cheat-sheet-v1/png/
0264nobodyさん
2011/08/19(金) 20:35:52.45ID:???http://blog.firsthand.ca/2011/04/script-for-ruby-on-rails-blog-in-15.html
http://media.rubyonrails.org/video/rails_blog_2.mov
http://vimeo.com/10732081
A complete turbogears spoliation: howto build a wiki in 20 minutes (well I did not time it)
http://sl33p3r.free.fr/tutorials/rails/wiki/wiki-en.html
Agile RSS Aggregator in Ruby - igvita.com
http://www.igvita.com/2007/03/22/agile-rss-aggregator-in-ruby/
0265nobodyさん
2011/08/20(土) 20:52:56.17ID:???http://www.slideshare.net/yalab/next-gae-heroku-3rails
5分でリリースできるRailsアプリ on Heroku - YouTube
http://www.youtube.com/watch?v=m0BD7RwbNc0
0266nobodyさん
2011/08/21(日) 22:01:48.09ID:???http://d.hatena.ne.jp/ruedap/20110509/ruby_heroku_web_app_development_tips_matome
第4回 Herokuのアドオンと外部サービスを活用しよう | Think IT
http://thinkit.co.jp/story/2011/04/01/2067
http://addons.heroku.com/
Rails Hub情報局: Heroku向けオートスケーリング「Hero Scale」登場
http://el.jibun.atmarkit.co.jp/rails/2010/12/herokuhero-scal.html
https://github.com/railsjedi/heroscale/
https://www.heroscale.com/
Herokuでcron?もう古いかも、それ - Meltdown Countdown
http://d.hatena.ne.jp/marutanm/20110719/p1
http://wakame.jp/
0267nobodyさん
2011/08/21(日) 22:15:51.15ID:???HireFireApp - The Heroku Worker Manager
http://hirefireapp.com/
ddollar's heroku-autoscale at master - GitHub
https://github.com/ddollar/heroku-autoscale
HerokuでWebアプリ開発を始めるなら知っておきたいこと (10)参考リンク集 - アインシュタインの電話番号?
http://d.hatena.ne.jp/ruedap/20110508/ruby_heroku_web_app_development_tips_10
0268nobodyさん
2011/08/21(日) 22:48:41.38ID:???これを使えばソースコードとデータベースの中身をまとめて一個のファイルに固めておくことができます。
http://tsukurusha.com/2010/07/heroku-を使い倒すバックアップ編/
http://flux88.com/2010/02/scripting-heroku-backups/
0269nobodyさん
2011/08/22(月) 19:35:27.38ID:???http://blog.mwsoft.jp/article/30354238.html
CSV形式のデータをインポートする方法
http://doruby.kbmj.com/fuj_on_rails/20100917/CSV_
0270nobodyさん
2011/08/22(月) 21:03:41.33ID:???0271nobodyさん
2011/08/22(月) 22:16:40.91ID:???0272nobodyさん
2011/08/23(火) 10:04:19.04ID:???0273nobodyさん
2011/08/23(火) 11:58:38.91ID:???0274nobodyさん
2011/08/23(火) 12:38:22.63ID:???0275nobodyさん
2011/08/23(火) 22:55:20.59ID:???0276nobodyさん
2011/08/23(火) 22:59:03.79ID:???テーブルの管理機能を提供するプラグインです。レコードの追加、 表示、更新、論理削除ができます。また、CSVでデータをインポート・エクスポートすることが 可能です。
http://webservice.nifty.com/rails_plugin/images/active_record_browser_large.png
http://webservice.nifty.com/rails_plugin/
0277nobodyさん
2011/08/24(水) 19:31:08.14ID:???ttp://d.hatena.ne.jp/ikad/20110820/1313832911
販売計画.heroku.com
https://hanbaikeikaku.heroku.com/
請求書.jp
https://www.seikyusho.jp/
0278nobodyさん
2011/08/25(木) 03:14:36.80ID:???https://github.com/technoweenie/restful-authentication
https://github.com/plataformatec/devise
https://github.com/hassox/warden
https://github.com/binarylogic/authlogic
https://github.com/andresbonilla/baseproject
http://codepron.info/post/1016066244/create-a-generic-rails-base-project
http://baseproject.heroku.com/signup
http://baseproject.heroku.com/users
0279nobodyさん
2011/08/28(日) 06:23:51.05ID:???http://ecpplus.net/weblog/rails-202-で-basic認証/
Ruby on Rails BASIC認証 | WEBシステム開発 | HAPPY*TRAP
http://www.happytrap.jp/blogs/2010/01/25/1858/
Ruby On Rails ピチカート街道 - Rails 2.0 追加機能・その7(ベーシック認証が簡単にできる) -
http://rubist.blog77.fc2.com/blog-entry-111.html
0280nobodyさん
2011/08/28(日) 06:28:24.25ID:???http://baseproject.heroku.com/login
http://baseproject.heroku.com/logout
http://baseproject.heroku.com/signup
http://baseproject.heroku.com
<% if current_user %>
<%= link_to 'logout', logout_url %>
<% else %>
<%= link_to 'login', login_url %> <%= link_to 'signup', signup_url %>
<% end %>
http://codepron.info/post/1016066244/create-a-generic-rails-base-project
https://github.com/binarylogic/authlogic
0281nobodyさん
2011/08/28(日) 23:21:38.96ID:???http://blog.livedoor.jp/sasata299/archives/51131376.html
RSpecでテストコードを書いたまとめ - (゚∀゚)o彡 sasata299's blog
http://blog.livedoor.jp/sasata299/archives/51277861.html
0282nobodyさん
2011/08/30(火) 13:48:07.60ID:???CommunityEngine | A social networking plugin for Ruby on Rails.
http://demo.communityengine.org/
0283nobodyさん
2011/08/30(火) 17:18:35.30ID:???いよいよリリースだな
0284nobodyさん
2011/08/30(火) 17:26:28.34ID:???0285nobodyさん
2011/08/30(火) 19:08:23.53ID:I/05nH8H1.3であればオーバーライドして以下のようにrouteをいじればできるみたいなのですが。
devise_for :owners, :controllers => { :registrations => "registrations" }
1.0のソースには:controllersのオプションが記載されていないのでできないのでしょうか?
https://github.com/plataformatec/devise/blob/v1.0/lib/devise/rails/routes.rb
注)rails2.3なのでDeviseは1.0じゃないと使えません。
0286nobodyさん
2011/08/30(火) 21:28:39.29ID:???いよいよだね
0287nobodyさん
2011/08/30(火) 22:11:11.56ID:???0288nobodyさん
2011/08/30(火) 22:27:55.88ID:???0289nobodyさん
2011/08/31(水) 07:22:40.01ID:???安定版は3.0
0290nobodyさん
2011/08/31(水) 08:51:46.66ID:q1Exa6cj0291nobodyさん
2011/08/31(水) 09:16:49.23ID:???変化に対応する事に毎年労力を割かないといけない状況ってどうなの?
そろそろPythonで相当いいFW出て来て勢力図一変するんじゃないかと
0292nobodyさん
2011/08/31(水) 10:18:05.04ID:???0293nobodyさん
2011/08/31(水) 11:08:23.27ID:???内輪だけで盛り上がってもつまんないじゃん
色んな層が飛び付いたからこそRailsは輝いたわけで
0294nobodyさん
2011/08/31(水) 11:27:29.36ID:???我々がイイね!使おう!と思えるモノになっているわけでして。
誰得というけど、それを言うならもう我々はそのRailsの態度から
既に大量の得を貰ってしまっていると言うべきかと。
エンジニアも知らず知らずのうちに既得権益者的な発想に陥ってしまうことがある。
「俺らはこれに慣れているんだ、なんで変えるんだ!?」と。
これは注意しなけりゃならん。
0295nobodyさん
2011/08/31(水) 11:36:02.19ID:???置いてけぼり感が大きいのは確かかもね
啓蒙にがんばってくださってる日本人の方もいるにはいるんだけど、絶対数が足りない
0296nobodyさん
2011/08/31(水) 11:43:53.86ID:???数年前まではRailsがweb界隈の相当大きな潮流だったから色んな人が英語圏情報をドンドン和訳してた
最近はRuby/Railsが一段落してJavaScript界隈が最先端的な空気になってる気が
0297nobodyさん
2011/08/31(水) 17:58:50.28ID:???gem で取れる
0298nobodyさん
2011/08/31(水) 18:50:42.95ID:???0299nobodyさん
2011/08/31(水) 18:55:33.07ID:???0300nobodyさん
2011/09/01(木) 04:58:02.41ID:???http://www.slideshare.net/mitim/rspec-3094456
Rubyist Magazine - スはスペックのス 【第 1 回】 RSpec の概要と、RSpec on Rails (モデル編)
http://jp.rubyist.net/magazine/?0021-Rspec
Rubyist Magazine - スはスペックのス 【第 2 回】 RSpec on Rails (コントローラとビュー編)
http://jp.rubyist.net/magazine/?0023-Rspec
http://rspec.info/
0301nobodyさん
2011/09/01(木) 13:51:39.34ID:???category has_many articlesな構成で、両テーブルに対して条件を指定して、articleを取得したいんですが、一般的にどう実装するんでしょうか?
因みに、条件に合うレコードを取得するメソッドを article モデルに追加しているんですが、やり方として正しいのでしょうか。
低レベルな質問&文章で申し訳ないのですが、アドバイス頂ければ幸いです。
■ このスレッドは過去ログ倉庫に格納されています