问题
Can someone point me to a solid sample app that shows how to use the new features and syntax of Rails 3?
It's been answered before for earlier versions (https://stackoverflow.com/questions/248371/whats-the-best-open-source-ruby-on-rails-project-to-learn-from), but I have not seen one for Rails 3.
Specifically the following:
- Routing
- Mailer
- new query syntax
- complex forms (how do these work with the new routing)
- unobtrusive js (specifically jQuery)
回答1:
You might want to check Projexion. It uses Rails 3 beta 3.
回答2:
Here's a nice Rails 3 overview from IBM (surprisingly), along with links to additional resources.
回答3:
You might want to look at ror_ecommerce. It's a starter app for an ecommerce site. Runs on Rails 3 and Ruby 1.9.2.
回答4:
You could refer to Ticketee. This is the application from Rails 3 in Action.
回答5:
This is a great resource for sample apps: https://github.com/gothinkster/realworld.
It lets you choose front-end and back-end and mix/match because it uses the same API.
Hope this helps some people go beyond the basic to-do list app demos with more robust app demos.
来源:https://stackoverflow.com/questions/2701622/sample-app-for-rails-3