Displaying 3 results from an estimated 3 matches for "oscaralexander".
2009 Apr 19
1
Overriding html generated for submit_tag and selected links
Hi,
Probably something simple, but I''m trying to change my submit_tag and
other buttons to CSS based buttons based on the article at
http://www.oscaralexander.com/tutorials/how-to-make-sexy-buttons-with-css.html
Basically this needs the following HTML markup:
<a class="button" href="#"><span>Button Text</span></a>
So, the question is how can I change the generated HTML (or better yet
create a helper) to allo...
2006 Jun 19
0
has_one frustrations, please help!
Hi everyone. I''ve been bending my head around a has_one association for
about 3 hours now and I can''t get it to work. I''m pretty sure it''s not
something I''m overlooking anymore. Here''s the essential part of the
schema I''m working with:
-----
t :topics
c :id
c :last_post_id
t :posts
c :id
c :topic_id
-----
Topics are simply named
2006 Jun 21
6
Sort table by child row property?
I''m building a simple forum system which features a topics and a posts
table. The topic model has a has_many association with the post model,
i.e.:
class Topic < ActiveRecord::Base {
has_many :posts
}
class Post < ActiveRecord:Base {
belongs_to :topic, :dependent => true
}
Now, I wish to sort the topics by the created_at property of the last
post, but I can''t