ActiveRecord Rocks But I Can’t Say the Same About Rails Views

Posted by – September 15, 2008

ActiveRecord has proven to be a easy to learn and productive ORM solution, you can define your application model with few lines of code, the syntax is much more concise than any other ORM solution.

But, in other hand, rails doesn’t have a elegant way to work with views, with a lot of loops and conditional expressions in the middle of code, this kind of approach remembers me the PHP coding 8 years ago, where after several lines your code become very hard to understand an maintain.

What I really like to see on Rails is a custom tag solution like JSTL with an expression language, where we can use a syntax very close to HTML syntax to add some functionality to rails views and not language specific statements.

The partials feature found on ActionView module looks promissing and may give a way to provide a smooth integration between HTML and rails view code where the tag name could be the name of partial layout file and the tag attributes should provide the data to be passed to :locals hash used by the partial.

Share

2 Comments on ActiveRecord Rocks But I Can’t Say the Same About Rails Views

  1. rogerio says:

    Radius seems very interesting.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>