Displaying 20 results from an estimated 38 matches for "rubygarden".
2006 Feb 21
7
Self-referencial habtm relationship
Heyo!
I am setting up a self-referencial habtm relationship with the users
of my app. I am using Chad Fowler''s "Rails Recipes" to get me started,
and everything works great with the join table "people_friends". I add
friends by doing somebody.friends << somebodyelse. However, with my
app, there is an approval process so my join table has columns
person_id,
2006 Feb 06
4
Relationship Question (STI)
My girlfriend and I have been dating for two years, and she just told me she
has an STI...
Actually, I currently have three different models, like: Dog, Whale, Monkey
They all have some similar attributes, but, they are unique enough to
break into their own models. I could use STI, but I think the table would
just have too many columns.
Now, I wanted to let the Dog''s, Whale''s
2006 Feb 06
6
ActionMailer - ROR Recipes - Multipart/alternative
I am using the SaltedHashLoginGenerator. and would like to send the e-mail in multipart/alternative format.
By default my application is using forgot_password_en.rhtml template.
I read in the ROR Recipes book
"ActionMailer sees these templates, recognizes the pattern in their
file names, and automatically sets the MIME type of the message to
multipart/alternative and adds
2006 Mar 08
3
migrations schema_info table, Rails Recipes Bug?
I have the rails recipes book and i was going through the migrations
recipe. Everything seemed to work except for the last part in trying to do
a rake migrate with a migration file version 1 and the schema_info version
set to 0. Without the force attribute, the rake migration fails, as
expected.
So the recipe says to run this:
ruby script/runner
2005 Apr 28
5
fcgi woes
Hi all
I''m running rails on apache with fcgi under windows
I have a module which I''ve included in one of my models, but if I
change any code in the module, i have to restart apache in order for
the changes to take effect. i tried some suggestions from folks in
the IRc channel, namely to put RAILS_ENV = ''development'' in
environment.rb but that doesn''t
2006 Mar 31
3
RJS templates outputting bloated code?
I''m an RJS newbie. I just did the tutorial at
http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates, and
then used wget to look at the output the RJS template generates. This is
what I got:
try {
new Insertion.Bottom("list", "<li>Fox</li>");
new Effect.Highlight("list",{duration:1});
Element.update("header", "RJS
2006 Jan 16
11
Plans to intigrate ObjectGraph in to Rails
Are there any plans to move the schema definition from migrations to the
model, where it should be?
Like og does, which I think is used by the ruby Nitro framework...
ObjectGraph:
http://www.rubygarden.org/index.cgi/Libraries/og_tutorial.rdoc
Example code:
[code]
class Post
property :title, String, :sql => ''VARCHAR2(32) NOT NULL''
property :body, String
property :author, String
property :create_time, Time
property :hits, Fixnum, :sql_index => true...
2006 May 18
4
Email Address verifier--eyes needed...
Folks:
I''ve posted a really basic e-mail address verifier to
http://wiki.rubygarden.org/Ruby/page/show/VerifyEmailAddress
I''d appreciate folks who understand DNS and SMTP having a look at it
to see if it looks reasonable. You could comment here or, possibly
more usefully, comment on the wiki page itself.
Thanks
Dave
2007 May 12
4
Multiply and format with thousands separator
...I have a list.rhtml with a code snipet like
<td><%=h mytable.send(:value1)*mytable.send(:value2) %></td>
which does the multiply, but how do I do the formating?
I found this link to some Ruby code that might do this, but where would
I put it and how would I use it?
http://wiki.rubygarden.org/Ruby/page/show/NumericFormat
Thanks
Alan
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rub...
2006 Feb 06
35
ROR Recipes Beta
Yesterday I got the beta version of ROR recipes book and the recipes are great. For those of you still thinking about it, I highly recommend the book.
The only thing I wish is that if there were some more recipes (greedy me), especially AJAX related and installing an application within your current application.
For instance, it will be great to see how one can implement the typo blog
2006 Aug 11
1
Excell
I posted question before butnobody answered. I find it hard to belive
that I''m the only one having to deal with excell fils.
Here is my problem - my app must process and create
ecxell files. I''m trying to figure out how to use
POI4r and cannot find any clear instruction on how to
get this working. I''m ruuning my app on Windows
server. Any ideas? Is there any other
2006 Jul 05
0
User Group Brisbane, Australia
Hi,
At the next Humbug meeting, we can all meet to talk about forming a user
group in Brisbane. If you are around on the 15th July we would love you see
you there.
http://wiki.rubygarden.org/Ruby/page/show/BrisbaneGroup
Date:Saturday 15 July 2006Time:Starting at three pm, out by one
am.Place:University
of Queensland,
Hawken Engineering Building,
room S201 <http://www.uq.edu.au/maps/index.html?menu=1&id=25&z=2>.
--
Regards,
Ian Connor
-------------- next part ------...
2006 Jul 07
2
how to do $pVar ++
This has been bugging me for a while
In php you can do $pVar++ to add 1 or $pVar-- to subtract, how can this
be done in ruby?
--
Posted via http://www.ruby-forum.com/.
2006 Jun 08
1
formatting amount
Hi,
What is the best way to format amount in RoR?
e.g $12000.937 => $12,000.94
Thanks,
Hari
--
Posted via http://www.ruby-forum.com/.
2006 Jun 13
0
[ANN/ADV] Rails Recipes is Shipping
...very proud of.
See (some of) you at RailsConf next week!
Thanks!
--
Chad Fowler
http://chadfowler.com
http://pragmaticprogrammer.com/titles/fr_rr/ (Rails Recipes)
http://pragmaticprogrammer.com/titles/mjwti/ (My Job Went to India,
and All I Got Was This Lousy Book)
http://rubycentral.org
http://rubygarden.org
http://rubygems.rubyforge.org (over four million gems served!)
2006 Jun 21
0
[REMINDER!] RubyConf 2006 talk proposals now being accepted
...''m fairly
sure the original announcement didn''t go to this list. Nonetheless --
here it is!]
Hi everyone --
In case you missed it the first time (and rather a lot of you seem to
have...) --
You can now submit a RubyConf 2006 presentation proposal, at:
http://proposals.rubygarden.org
You can, and you should, and if you intend to, you MUST!
Here are a few FAQ (FAQs?):
1. WHAT''S THE DEADLINE?
The deadline for proposals is JUNE 30, which is SOON! We have to get
the schedule at least mostly set so that we can open up registration
and actually give people a reason...
2006 Mar 13
2
Rails : Objects, Patterns and Practice
I''m currently learning Rails and reading PHP5 Objects, Patterns, and
Practice.
Its a great intoduction to Singletons, Factories etc but can anyone
recommend a similar resource for Rails or failing that Ruby. ?
thanks
Tony
--
Posted via http://www.ruby-forum.com/.
2006 Feb 09
0
OSCON Call For Proposals Deadline (Feb 13)
...#39;'s increased
visibility. Hope to see you there!
--
Chad Fowler
http://chadfowler.com
http://pragmaticprogrammer.com/titles/fr_rr/ (Rails Recipes - In Beta!)
http://pragmaticprogrammer.com/titles/mjwti/ (My Job Went to India,
and All I Got Was This Lousy Book)
http://rubycentral.org
http://rubygarden.org
http://rubygems.rubyforge.org (over one million gems served!)
2006 Jan 01
0
An Orlando Ruby/Ruby_on_rails user group is forming
Hi all,
Anyone in Central Florida wanting a Ruby and Ruby_on_rails user group, please
contact Gregg Pollack (his email address is listed at
http://www.rubygarden.org/ruby?Orlando), or if you can''t reach him, simply
reply to this message and I''ll forward it to him.
Thanks
SteveT
Steve Litt
Author:
* Universal Troubleshooting Process courseware
* Troubleshooting Techniques of the Successful Technologist
* Rapid Learning: Secret...
2006 Jan 02
2
::?
Can any one explain the symbole ::? I can not find any refference in any
document. Thanks
Pretty Kim
--
Posted via http://www.ruby-forum.com/.