Displaying 3 results from an estimated 3 matches for "fr_method_index".
2005 Aug 19
3
accessing DB result in template
hello,
I have the following in my controller
def totalmembers
@total = User.find_by_sql "SELECT COUNT(*) as count FROM users "
end
now inside my template how do i access the field "count" from the
query so i can print out the number of members ?
I tried everythign like <%= @total.count %> but nothing works.
thanks
adam
2006 May 18
0
Documentation for the plugins you use
...<frameset rows="25%,25%,25%,25%">
<frame src="doc/rdoc/fr_file_index.html" title="Files"
name="Files" />
<frame src="doc/rdoc/fr_class_index.html" name="Classes" />
<frame src="doc/rdoc/fr_method_index.html" name="Methods" />
<frame src="plugins.html" name="Plugins" />
</frameset>
<frame src="doc/rdoc/files/README.html" name="docwin">
<noframes>
<body bgcolor="white">...
2006 May 10
2
Exploring ActiveRecord::Base#serialize
...even looks
like a DRY violation. Also, it''s somewhat obscure: the self.years=
syntax isn''t newbie-obvious, and after_initialize doesn''t appear in
the Rails method glossary [1].
To sum up, I think there should be a feature request.
-Alder
[1] http://api.rubyonrails.com/fr_method_index.html