search for: rubypal

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

Did you mean: rubycat
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
2006 Jul 31
2
[UPDATE] More info on RubyConf 2006 registration
...;re only taking credit cards, etc.). David P.S. Any LA area Rubyists around? I''ll be there this week doing Rails training. -- http://www.rubypowerandlight.com => Ruby/Rails training & consultancy ----> SEE SPECIAL DEAL FOR RUBY/RAILS USERS GROUPS! <----- http://dablog.rubypal.com => D[avid ]A[. ]B[lack''s][ Web]log http://www.manning.com/black => book, Ruby for Rails http://www.rubycentral.org => Ruby Central, Inc.
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
This release upgrades the included Ruby to version 1.8.4 and will become the final 1.0 release of Instant Rails if no serious problems are found. Instant Rails is a one-stop Rails runtime solution containing Ruby, Rails, Apache, and MySQL, all preconfigured and ready to run. No installer, you simply drop it into the directory of your choice and run it. It does not modify your system environment.
2006 Jul 25
2
Ruby Central''s Regional Conference Grant Program
...he 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 http://www.rubypal.com/rubycentral/rcg2006.pdf Looking forwarding to hearing from you! David Black Chad Fowler Rich Kilmer for Ruby Central, Inc. -- http://www.rubypowerandlight.com => Ruby/Rails training & consultancy http://www.manning.com/black => RUBY FOR RAILS (reviewed on...
2007 Jan 04
0
[ADV] Ruby/Rails training in Alexandria, VA, by Accelebrate
...http://www.accelebrate.com/contact/ror_registration.asp I hope I''ll see you there! David [1] http://www.accelebrate.com -- Q. What is THE Ruby book for Rails developers? A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black) (See what readers are saying! http://www.rubypal.com/r4rrevs.pdf) Q. Where can I get Ruby/Rails on-site training, consulting, coaching? A. Ruby Power and Light, LLC (http://www.rubypal.com) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk&qu...
2008 Jun 07
0
[ANN/ADV] "Advancing With Rails", July 21-24, Edison NJ
...knowledge and their Rails skillset. Topics include routing and REST, advanced ActiveRecord associations, caching, Ruby class and module principles, and much more. The course takes place at the Edison, NJ training labs of Exceed Education. For details of cost and registration, please see http://www.rubypal.com/events/07212008 Let me know if you have any questions. Looking forward to seeing you there! David -- Rails training from David A. Black and Ruby Power and Light: INTRO TO RAILS June 9-12 Berlin ADVANCING WITH RAILS June 16-19 Berlin ADVANCING WITH RA...
2008 Oct 29
0
[ANN/ADV] Intro and Advanced Rails training in Florida in January
...d be a very good fit for you. And the Intro course isn''t bad either! It''s been developed and taught for 2.5 years, and it''s helped a lot of people get started the right way with Rails. You can find both events listed, with outlines and registration links, at http://www.rubypal.com, and please contact me directly with any questions. I''ll also be at RubyConf next week and happy to discuss the training there. David -- Rails training from David A. Black and Ruby Power and Light: Intro to Ruby on Rails January 12-15 Fort Lauderdale, FL Advancing with Ra...
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!
My apologies to all who downloaded preview6, it did not contain Rails 1.0 as advertised -- I screwed up! Preview7 does, in fact, contain Rails 1.0 and as a bonus, also includes Typo 2.6.0 as a preinstalled sample app. See the Getting Started page for instructions on running Typo in Instant Rails: http://instantrails.rubyforge.org/wiki/wiki.pl?Getting_Started Also, you can thank David Morton
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: