Archive for März 2009

h1

sortable_element with table

März 24, 2009
<table class="listing">
<thead>
<tr>
<th></th>
<th></th>
</tr>
</thead>
<tbody id="project_versions">
<% for item in project_versions %>
  <% content_tag_for(:tr, item) do %>
<td class="drag_handle">[drag]</td>
<td><%= h item.name -%></span>
  <% end %>
<% end %>

 <%= sortable_element('project_versions', :url => {:controller => 'project', :action => 'sort_project_version'}, :handle => :drag_handle, :tag => :tr) %>

Without many words, i hope the code speaks for itself.
Take care of the :tag attriubte in the helper (default is li) and the container has to be the tbody.

Advertisements
h1

Selling Rails in a Recession

März 5, 2009

According to this grailsblog post, here is the Rails port:

Open Source Stack = $0

Because Rails runs on the JVM (JRuby), it is platform agnostic and capable of running on top of a 100% open source stack. Everything including the OS, app server, and database may be obtained free of charge with no license fees.

Faster Development Time

Yes, it’s great that everything needed to run Rails’ applications may be obtained for free, but what’s even a bigger cost savings is how much time developers can save by working within the JRuby/Rails environment. Rails really tends to speed up development in the following 3 areas:

Data Access

ActiveRecord provides an amazingly efficient way to model domain objects as well as persist them to a database.

Scaffolding

Scaffolding speeds up development time rapidly.

Syntax

When working with JRuby and Rails, developers will find themselves writing less code than when working within the traditional Java environment. Less code translates into shorter development time.

Summary

Rails is a great fit for a recession. It allows developers to create high quality applications on top of a free open source stack in less time than many of the more common, corporate frameworks.