To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/c2to0ygbgpoJ.
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
- generators (rails g controller, rails g model)
- helper methods
- plugin repository
- good documentation
- good tutorials
- scala for web(You don't have the learn all the ruby language to be good at RoR, well not at the beginning :)
- ORM ( Active Support.. rulez :)
- a nice REST integration
- a good routes files(ex: root :to=>"controller#action", nested rules, group routes, etc)
- Validation at the model level
On 18 Nov., 21:56, Claudiu Clau <claudiu.ga...@gmail.com> wrote:
> hi there!
>
> I found my self in occurred situation. I love RoR framework, but i'm
> falling inlove with play and scala :)
> Play! has the unique opportunity. Not the make the same mistake that RoR
> people make it
> Tu much words and no action :)
> I wish in the future, maybe not so far far away, some stuff from RoR :)
> I miss:
>
> - generators (rails g controller, rails g model)
> - helper methods
> - plugin repository
> - good documentation
> - good tutorials
> - scala for web(You don't have the learn all the ruby language to be
> good at RoR, well not at the beginning :)
> - ORM ( Active Support.. rulez :)
> - a nice REST integration
> - a good routes files(ex: root :to=>"controller#action", nested rules,
> group routes, etc)
> - Validation at the model level
Anyway, besides that fact that ruby is a language way more expressive than java
1) Routes: http://guides.rubyonrails.org/routing.htmlRoutes in rails are just great! Methods like "resources", "namespaces", "constraints" or capabilities like "nested resources" are really powerful while stills simple. I also really like the fact that is easy to test your routes.
2) respond_to do |format| inside controllers: http://guides.rubyonrails.org/action_controller_overview.html#rendering-xml-and-json-datarenderJSON and renderXML are not good enough for content negotiation.
This is a big advantage, yes, but luckily we'll soon have full Scala support.
Can you give an example what Routes you can define in Rails that you can't in Play?
I don't understand this point. In a Play controller, you can also access request.format.if ("json".equals(request.format))renderJSON(fruits);
With Scala it will be as expressive as the Rails example.request.format match {"json" => ..."xml" => ..._ => Ok}
It seems like those wishes are "make Play like Rails". But if you want
Rails, why not just use it?
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.