Files
2012-02-21 01:15:00 -05:00

1 line
2.9 KiB
JSON

[{"user_id": 369, "stars": [], "topic_id": 6766, "date_created": 1297922178.250567, "message": "Say I have a Video model (video.rb). Should the controller be video_controller.rb or videos_controller.rb? I think I have seen both.", "group_id": 447, "id": 129549}, {"user_id": 10014, "stars": [], "topic_id": 6766, "date_created": 1297935200.0356381, "message": "video_controller.rb is the standard and better name, I think", "group_id": 447, "id": 130301}, {"user_id": 3605, "stars": [{"date_created": 1298054938.355273, "user_id": 891}, {"date_created": 1299394516.4027131, "user_id": 369}], "topic_id": 6766, "date_created": 1297942486.2232981, "message": "video_controller.rb is not the standard. videos_controller.rb is the standard. Both will work, but videos_controller.rb is the rails way. If you want to see the standard way of laying things out, try generating a scaffold for video in a new project: rails g scaffold video (in rails 3)", "group_id": 447, "id": 130822}, {"user_id": 643, "stars": [], "topic_id": 6766, "date_created": 1298020154.614675, "message": "videos_controller", "group_id": 447, "id": 140944}, {"user_id": 10014, "stars": [], "topic_id": 6766, "date_created": 1298020047.3553751, "message": "Sorry for my wrong answer, didn't use scaffold for years.", "group_id": 447, "id": 140941}, {"user_id": 8875, "stars": [], "topic_id": 6766, "date_created": 1298352161.7217021, "message": "this isn't directly related to your question, but I found where rails implements some of its naming conversions: http://api.rubyonrails.org/classes/ActiveSupport/Inflector.html", "group_id": 447, "id": 177227}, {"user_id": 8875, "stars": [], "topic_id": 6766, "date_created": 1298352232.467555, "message": "can be kind of useful if you want to know what convention to use, just open up script/console and require \"ActiveSupport::Inflector\"", "group_id": 447, "id": 177236}, {"user_id": 14571, "stars": [{"date_created": 1299394496.329921, "user_id": 369}], "topic_id": 6766, "date_created": 1299135036.6472521, "message": "The naming convention is: Model in singular and Controller in plural.", "group_id": 447, "id": 258650}, {"user_id": 369, "stars": [], "topic_id": 6766, "date_created": 1299394547.59638, "message": "Great and thank everyone for all the answers.", "group_id": 447, "id": 278859}, {"user_id": 12813, "stars": [], "topic_id": 6766, "date_created": 1301744246.3521259, "message": "Hi, I am a newbie to this Ruby , i am trying to develop a webapp using this.....please share me the link which explains installation of web framework", "group_id": 447, "id": 508377}, {"user_id": 23325, "stars": [], "topic_id": 6766, "date_created": 1301753118.233835, "message": "@saravanan_b installation or how to create an app?", "group_id": 447, "id": 508738}, {"user_id": 12813, "stars": [], "topic_id": 6766, "date_created": 1301800565.055409, "message": "both installation and app creation....", "group_id": 447, "id": 511428}]