Displaying 11 results from an estimated 11 matches for "richstyl".
Did you mean:
richstat
2006 Feb 26
3
Representing relationships between model objects
I''m a little stumped on how to approach the subject of representing
relationships between a single model object.
Basically, I want a User to be able to mark others as Friends,
Contacts, etc. The caveat is that User A can mark User B as a Friend
but that doesn''t mean User A is marked as a friend by User B. It can
either be a one-way relationship or two-way relationship.
Right
2006 Feb 22
1
Rails Book finally hits Japan
...and everybody is struggling with the globalization/localization.
I''ve been monitoring the Japanese rails mailing list and there''s a
Tokyo study group already drawing attention. I think they''re having
their fourth meeting soon. There''s a couple toy applications out
there and I believe cookpad.com is currently being rewritten with
rails in the background.
2006 Jan 22
23
calculate users age
i know it''s probably really simple, how do i work out someone''s age if i
have their d.o.b. stored as a date in my db.
cheers
--
Posted via http://www.ruby-forum.com/.
2006 Aug 11
0
pimp my code?? Using self.new in class methods, brittle design & testing such methods
It''s way past midnight and I''m about to go to sleep. I''m having
doubts about my code now that I''m trying to test as I go.
Now my model follows the pattern of the LineItem model in the rails book.
Basically the User has one Group and this one Group has many Friends
(polymorphic two-way as "befriender" and "befriended"--users).
from
2006 May 27
0
newbie question: creating views to submit values
Apologies for such a basic question. I''ve wracked my brain on this a
couple days so if anyone takes pity, please help me out.
I''ve been looking at STI (Single Table Inheritance) at the Rails Wiki
and decided to try it out. I got it working in the model and
controllers but can''t figure out how to make a proper view that will
take the values and add them into the
2006 Jan 10
0
Extending Rails with Framework Generators
I''m a total newbie still plowing though people''s code and figuring things
out in general.
One of the things I''ve been looking at are plugins and engines. Although
I''m a newbie, I reached the conclusion that either approach really leaves
much to be desired (also, since I need to learn about the underlying code
instead of borrowing).
I totally agree with DHH
2006 Jan 12
0
generating user table with Acts_as_authenticated
Sorry for the newbie question. I''d like to check out the
Acts_as_authenticated plugin but have no idea how to conveniently set up the
User Table in Mysql.
I use a mac OSX, but how do I change the following code into a DB schema?
def self.up
create_table "add_authenticated_tables", :force => true do |t|
t.column "login", :string, :limit =>
2007 Feb 23
0
[OT] Whoa! Did Justin Palmer and Rick Olson Just Start a Company?
For a second I thought Active Reload was an exciting new Rails core
framework. Just want to be the first to congratulate Rick and Justin
on their new journey. A lot of us benefit from your code each and
every day!
http://activereload.net/2007/2/13/a-new-company-is-born
http://digg.com/tech_news/Rails_Superstars_Rick_Olson_and_Justin_Palmer_Start_a_New_Company
Sam
2006 Apr 23
0
programming tips for a newbie
I kind of feel guilty for posting something like this since it''s kinda
off topic but as a newbie I wanted to share with you some tips from
Wil Shipley (of OMNI Group fame) geared towards the programmers
starting out since I found it really relevant.
Just to give you a taste:
* The Way of the Code Samurai *
Now, I don''t actually know much about real samurai, but the basic
thing
2006 Feb 21
5
Abstracting ownership verification out of Controller
Right now I have a controller for "events" that belong to a specific
user. I only want the creator to be able to edit or delete the event.
I''ve got the proper foreign keys set up.
I''ve finally arrived at the point where I can take baby steps with
code, but looks like my first steps are in flagrant violation of the
DRY principle.
Here''s what I have so far in
2006 May 13
9
Is test driven development for newbies?
I''m still reading other people''s code and going over the books. As I
was doing this a question sprang up in my mind.
Is it wise for total newbies to attempt test driven development from the start?
Basically, if you''re a newbie like me, chances are your tests might
even be broken themselves. Or will attempting to write tests be good
practice for actual coding as