search for: rubypants

Displaying 20 results from an estimated 96 matches for "rubypants".

2006 Aug 09
0
load_paths on godaddy hosted account
I am trying to get typo to load on my godaddy account. I''ve loaded other home grown apps and they work. I get issues when trying to load libraries from my vendor directory. In my enviroment.rb I have config.load_paths += %W( vendor/rubypants vendor/akismet vendor/redcloth/lib vendor/bluecloth/lib vendor/flickr vendor/syntax/lib vendor/sparklines/lib vendor/uuidtools/lib vendor/jabber4r/lib vendor/rails/railties vendor/rails/railties/lib vendor/rails/actionpack/lib vendor/rails/activesuppo...
2006 Jul 31
2
[UPDATE] More info on RubyConf 2006 registration
Hi -- Registration for RubyConf 2006 is still scheduled to open on August 2, in the early evening Pacific (US West Coast) time. Also, there''s more info at http://www.rubycentral.org/conference (e.g., the fact that this year we''re only taking credit cards, etc.). David P.S. Any LA area Rubyists around? I''ll be there this week doing Rails training. --
2006 Jul 30
8
Method_missing from Ruby for Rails book
I''m having a problem getting this example from the book to work: class Cookbook attr_accessor :title, :author def initialize @recipes = [] end def method_missing(m, *args, &block) @recipes.send(m, *args, &block) end end cb = Cookbook.new cb << recipe_for_cake cb << recipe_for_chicken beef_dishes = cb.find_all {|recipes| recipe.main_ingredient ==
2006 Jul 17
14
REST Relationship Models
I''m trying to figure out an elegant way to do this: I have the following three tables: people, employer, employees And consequently the following three models: class Person < ActiveRecord::Base end class Employer < ActiveRecord::Base has_many :employees end class Employee < ActiveRecord::Base belongs_to :person belongs_to :employer end I want to be able to say:
2007 Aug 09
7
Integrating polymorphic models into controllers views? how?
I''m having trouble trying to get this to work. How the heck do you get a polymorphic controller to work? Especially integrating it with a view? Let''s say that we have shows, and episodes, then comments. A show has many episodes, an episode has many comments. the route is /shows/1/episodes/1/ Now to add a comment to that episode, how would I do it? Let''s say that the
2009 Sep 27
3
Newbie Trouble with RubyOnRails Bible
Hello all, I am new to RoR and am working my way through Timothy Fisher''s Ruby On Rails Bible. I''m stuck on page 81. I have followed the steps leading to this page, i.e. cd rails_projects rails contactlist <creates all the directories> ruby script/server webrick <shows the Welcome Aboard page> open a cmd window and run mysql: create database contactlist_development;
2006 Jan 03
2
Instant Rails 1.0 Release Candidate 1
...review8 * Restored missing log directories in the sample apps. ------------------------------------------------------------------- 2005.12.13 Instant Rails 1.0 preview7 (preview6 was a bad release) * Included Typo 2.6.0 as a sample app * Included RedCloth 3.0.4, BlueCloth 1.0.0, and RubyPants 0.2.0 (used as text formatters by Typo). * Upgraded Rails to 1.0 final * Instant Rails now detects being run from a directory path that containd spaces, issues a warning, and quits. ------------------------------------------------------------------- 2005-11-08: Instant Rails 1.0 pre...
2006 Jul 25
2
Ruby Central''s Regional Conference Grant Program
Hello everyone -- We are very pleased to announce the launching of the Ruby Central Regional Conference Grant Program for 2006. This program will provide grants of up to $1500 US to approximate six to eight regional conferences, over the next year. You can download full details at either of these addresses: http://www.rubycentral.org/rcg2006.pdf
2007 Jan 04
0
[ADV] Ruby/Rails training in Alexandria, VA, by Accelebrate
Hi -- Accelebrate[1] is presenting a four-day Ruby for Rails training course, February 6-9, 2007, in Alexandria, Virginia. I will be the instructor. The course covers beginning through intermediate Ruby and Rails, and is a good fit for anyone who''s starting out on their own and wants to get the fundamentals down solid. You can get more information, and registration details, at
2008 Jun 07
0
[ANN/ADV] "Advancing With Rails", July 21-24, Edison NJ
Hi everyone -- I''m very pleased to announce the following upcoming training course: ADVANCING WITH RAILS July 21-24 Edison, NJ "Advancing With Rails" is a course for intermediate Rails programmers who want to get to the next level with both their Ruby knowledge and their Rails skillset. Topics include routing and REST, advanced ActiveRecord associations, caching,
2008 Oct 29
0
[ANN/ADV] Intro and Advanced Rails training in Florida in January
Hi everyone -- My .sig has said so for a while, but I thought I would directly announce two Rails training courses from Ruby Power and Light, coming up in Florida in January, both in Fort Lauderdaler Intro to Ruby on Rails, January 12-15 Advancing with Rails, January 19-22 I''m teaching "Intro", and "Advancing" will be co-taught by me and Patrick Ewing. The
2007 Aug 10
2
uninitialized constant MiniMagic (NameError)
Hi, Mini-Magick breaking. I have installed mini-magick gem. Here is my sample program require ''rubygems'' gem ''mini_magick'' include minimagick image = MiniMagick::Image.from_file(''./fun.jpg'') image.resize "100x100" image.write(''./funthumb.jpg'') Output: test.rb:3: undefined local variable or method
2007 Mar 20
1
Passing Arguments to before_filter
I want to put a before_filter in application.rb, as follows: before_filter :do_something, :except_controller => [:admin] def do_something(options) options.stringify_keys! unless options[:except_controller].include?(controller_name) # do something useful end end Where I''m blocking is on how to get the ''options'' data in the do_something method. I think I
2007 Mar 14
11
path vs. url
When using named RESTful routes, when should one use the generated ..._path helpers, and when the ..._url helpers? Say I did this in routes.rb: map.resources :users Where should I use users_path, new_user_path, etc., and where should I use users_url, new_user_url...? Thanks! Steve --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to
2008 Apr 25
2
Can't Understand Why This Works
I have 3 methods: def add_to_cart # do some stuff redirect_to_index end def empty_cart # do some stuff redirect_to_index("your cart was emptied") end def redirect_to_index(msg = nil) flash[:notice] = msg if msg redirect_to :action => :index end How come the flash notice works if I''m setting msg = nil? For example, if I''m in empty_cart and pass
2006 Aug 08
12
delete_if doesn''t work for has_and_belongs_to_many
I''m using Rails-1.1.4 with Ruby-1.8.4 So let''s say I have 2 model classes: class Item has_and_belongs_to_many :things end class Thing has_and_belongs_to_many :items end i = Item.new i.things << Thing.new( :value => "Something").save i.things << Thing.new( :value => "Something Else" ).save i.save Fine, now I have two records in the
2005 Dec 15
5
Instant Rails 1.0 preview7 -- with Typo!
...ions: http://instantrails.rubyforge.org/wiki/wiki.pl?How_To_Upgrade ------------------------------------------------------------------- 2005.12.13 Instant Rails preview7 (preview6 was a bad release) * Included Typo 2.6.0 as a sample app * Included RedCloth 3.0.4, BlueCloth 1.0.0, and RubyPants 0.2.0 (used as text formatters by Typo). * Upgraded Rails to 1.0 final * Instant Rails now detects being run from a directory path that containd spaces, issues a warning, and quits. ------------------------------------------------------------------- 2005-11-08: Instant Rails 1.0 pre...
2006 Jul 26
2
newbie - HABTM confused...
I have a users table. I have a assignment table. and I have to log in to see my assignments. i can and I hasve a session id. I can make a new assignment and save my id in the user_id field of the assigment table. I want to share my assignments. so I can create a assignments_users table. this way I can have assignment 1 shared with user 1 and 2. and If I log in as user 1 or 2 I see the assignment.
2007 Jun 27
5
Regexp not matched
Sorry, meant to post this in the rails forum. Anyways, how would I write a rescue method to recover from a failed regexp parsing with error "regexp not matched" -Thanks -- 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
2007 Feb 16
13
negate the regexp in validates_format_of
Railsters: ActiveRecord''s validation system puts other database systems to shame. However, the newbies might not know how to write a regexp that excludes a match, instead of tests for it. Understand - I''m just asking this question to help them. I have been using Regexps since ''grep'' on Xenix! But the newbies here might not know how to do this: