Displaying 20 results from an estimated 102 matches for "rubypowerandlight".
2006 Jun 28
1
European Rails Conf -- talk proposals now being accepted
...ectly if you have questions about the proposal
process.
Thanks -- looking forward to seeing proposals!
David, for Ruby Central, Inc. and Skills Matter, Ltd., co-producers
of the 2006 European Rails Conference
--
David A. Black (dblack@wobblini.net)
Ruby Power and Light, LLC (http://www.rubypowerandlight.com)
See what the readers are saying about "Ruby for Rails"!
http://www.rubypowerandlight.com/quotes
2006 Jun 09
1
any errata for second printing of "Ruby for Rails"?
...appening soon. If you''ve
spotted any small errors, let me know... like... *very* soon :-)
(I want to know about large errors too, but those fixes won''t make it
into this printing :-)
Thanks!
David
--
David A. Black (dblack@wobblini.net)
Ruby Power and Light, LLC (http://www.rubypowerandlight.com)
See what the readers are saying about "Ruby for Rails"!
http://www.rubypowerandlight.com/main/quotes
2006 Apr 27
5
ERb on he command line re: Ruby For Rails book
Hi,
I am working thru the Ruby for rails book. On page 30 David Black
talks about running erb from the command line i.e. $ erb erbdemo.rb
just as you would a normal ruby prog ($ ruby erbdemo.rb) but when I
try to do this I get command not found. How do I make this work? I am
running Linux (Ubuntu Breezy)
Regards,
Paul
2006 Mar 20
11
has_many brings back ''uninitialized constant''
hello. first things first - I am new to ruby on rails (ruby, too), so
I''m figuring this is just a basic newbie error.
I''m creating a basic photography website. And I have two tables with a
relationship:
photos:
- id (set up as PK)
- title
- shutter
- aperture
- date
- the_order
...etc
photo_comments:
- id (set up as a PK)
- photos_id (set up as a FK)
- author
- date
-
2006 May 11
7
[ANN/ADV] Ruby for Rails now published in paper!
...If you want to talk about "Ruby for Rails" you can reach me at (among
other places) the Author Online forum at Manning; there''s a link on
the book''s page.
Happy Ruby-for-Railsing!
David
--
David A. Black (dblack@wobblini.net)
* Ruby Power and Light, LLC (http://www.rubypowerandlight.com)
> Ruby and Rails consultancy and training
* Author of "Ruby for Rails" from Manning Publications!
> http://www.manning.com/black
2006 Jul 31
2
[UPDATE] More info on RubyConf 2006 registration
...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.
--
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...
2006 Jun 21
0
[MINI-ANN] DABlog
Hi --
Just a quick note to announce the creation of DABlog, David A. Black''s
Log, at http://dablog.rubypowerandlight.com. You can also reach it at
http://dablog.rubypal.com, if you want to type less :-) DABlog runs
on Typo.
Meanwhile, greetings from Chicago -- I hope I''ll see lots of you here.
David
--
David A. Black (dblack@wobblini.net)
Ruby Power and Light, LLC (http://www.rubypowerandlight.com...
2006 Feb 10
15
"Ruby for Rails" in early access release
...he Manning Early Access Program, with the whole book
due to appear on May 1.
If you''re interested, see http://www.manning.com/books/black
(I guess I could have just sent my sig with no body, but anyway :-)
David
--
David A. Black (dblack@wobblini.net)
Ruby Power and Light (http://www.rubypowerandlight.com)
"Ruby for Rails" chapters now available
from Manning Early Access Program! http://www.manning.com/books/black
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:
2006 May 31
7
How to render from with <%%> ?
I have a loop that I iterate through in my view.
<%
coll.each do |itm|
puts(itm.value)
end
%>
How do I render the itm.value without using a <%= %> tag? Should puts
not work?
Joerg
P.S. There is a good enough reason for me wanting to do this :-)
--
Posted via http://www.ruby-forum.com/.
2006 Jun 18
2
Adding a instance method
Hi all,
I''d like to add a instance method to class String.
I should be fairly simple with
class String; def newmethod; do_something ; end; end
and it works perfectly if I test this independently with irb.
However if I add this to my application.rb I''ll get an error like
(undefined method `newmethod'' for "123456":String)
What''s wrong with that?
2006 Jun 21
0
[REMINDER!] RubyConf 2006 talk proposals now being accepted
...l or hobbyist
enterprise)
3. WHO CAN I ASK IF I HAVE QUESTIONS ABOUT MY TOPIC IN ADVANCE?
You can write to contact@rubycentral.org and we''ll give you some
feedback.
Thanks!
David, for RubyConf 2006
--
David A. Black (dblack@wobblini.net)
Ruby Power and Light, LLC (http://www.rubypowerandlight.com)
See what the readers are saying about "Ruby for Rails"!
http://www.rubypowerandlight.com/quotes
2006 May 16
2
Ruby Central presents the European Rails Conference
...matter.com/railsconf.
There will also be a Call for Proposals for presentations, coming
soon.
We''re looking forward to seeing you in London!
David
for the European Rails Conference and Ruby Central, Inc.
--
David A. Black (dblack@wobblini.net)
* Ruby Power and Light, LLC (http://www.rubypowerandlight.com)
> Ruby and Rails consultancy and training
* Author of "Ruby for Rails" from Manning Publications!
> http://www.manning.com/black
2006 Mar 16
3
Passing function names from string variables
This may be a more generic Ruby question, so I''m going to ask on the Ruby
forum, but I''m trying to figure out if there is a way to pass in the string
value of a variable as the name of a method.
For example, I would like to do something like:
def sort_obj_by_uid(objects,@attr)
@tmparray = Array.new
@tmphash = Hash.new
for object in @objects
if !
2006 Mar 20
5
:conditions => ["phone like ''%:phone%''" , {:phone => "555"}]
Hi all,
What''s wrong with the way I specify the condition in :
Person.find :all, :conditions => ["phone like ''%:phone%''" , {:phone
=> "555"}]
?
It translates to (note the two '' between the two ")
SELECT * FROM people WHERE (phone like "%''555''%" )
instead of
SELECT * FROM people WHERE
2006 Mar 14
9
Can you better this String acronym method?
Can you better this String acronym method?
def acronym name
letters=[]
name.each_char {|char| letters<<char if char[0]>=65 and char[0]<=90}
acronym = letters.join " "
end
chris
--
Posted via http://www.ruby-forum.com/.
2006 Apr 18
4
Mixin variables
I''ve created an access control module that I''m including in several
different controllers. Everything works fine, but I want to allow each
controller to override the default login page with something like this:
set_login_pages :secure => ''my_login''
In my module, I''ve set up the set_login_pages method like this:
def self.included(base)
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
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.