Politics, Programming and Possibilities
24 Oct
There have been some noteworthy changes to the Rails code base recently. I thought I’d list some of them here to familiarize myself (and others) with them:
config.plugins = %w[ textmate_footnotes acts_as_taggable ]
class Admin::Tools < ActiveRecord::Base; end
Update: This feature is in Rails 1.1—thanks to Matthias for pointing out how out of date I am
I think I’m going to find that it’s a lot easier to keep large applications organized, given that good applications often break concepts up in to small and manageable classes in the domain.
Note that you can also use this ability with non-active-record classes as well–it’s just as valid to create a model that connects with your LDAP server or loads text files from disk. Namespacing is good
#!/usr/bin/env /path/to/my/app/script/runner
This is similar to adding
to ruby files, but it gives you the whole Rails environment to work in as well.#!/usr/bin/env ruby
<% form_tag :action => "create" do %>
HTML and Text goes here.
<%= submit_tag "Done" %>
<% end %>
<% content_tag :span, :class => "title" do %>
<%= @names.join(", ") %>
<%= image_tag "link.gif" %>
<% end %>
George, Tom, Lisa
3 Responses for "Summary of Some Recent Changes to Edge Rails"
I think that namespace models has been a feuture for a looong time. I am using Rails 1.1.3 and have been using namespaces since forever
script/generate model Admin/Tools
Thanks for clearing that up, Mathias!
I just found out about it recently, so I guess I’m behind the times. From the recent Changelogs, there have been some fixits and tidyings going on with regard to namespaced models. More progress!
[...] Going Up har en sammanfattning av vad som har hänt i Edge Rails den senaste tiden. Glädjande och nytt för mig var att det nu är möjligt att skapa modeller i en egen namnrymd: [...]
Leave a reply