Displaying 6 results from an estimated 6 matches for "phillipkoebbe".
2008 Jan 01
7
in_vertical_groups_of
Hi all,
Here''s another contribution for anyone interested.
In Railscast episode 28, Ryan Bates showed us in_groups_of which
allows you to group array members such as
>> list = [1, 2, 3, 4, 5, 6, 7]
=> [1, 2, 3, 4, 5, 6, 7]
>> list.in_groups_of(3)
=> [[1, 2, 3], [4, 5, 6], [7, nil, nil]]
This allows you to iterate over the groups and, for example, display
a list
2007 Dec 27
17
2.0 & "Agile Web Dev..." book
Just running through the first little project (depot) in ''Agile Web
Development with Rails''. It isn''t scaffolding like it says it should
in the book.
After running:
>rails -d mysql depot
then SQLing:
drop table if exists products;
create table products (
id int not null auto_increment,
title varchar(100) not null,
description text not null,
image_url varchar(200)
2010 Mar 04
5
has anybody made actionmailer work with rails 2.3.5?
Hi,
I have wasted few days and I''m not getting anywhere. I was trying to
follow tutorial on Rails Guides and this one:
http://www.tutorialspoint.com/ruby-on-rails/rails-send-email.htm .
All I need is to be able to send some text, nothing fancy. Why in
Rails it has to be so difficult? Why it can''t be so simple as in PHP?
Can anybody point me to some good simple tutorial,
2007 Dec 23
11
return day from date (javascript) ?
Ok, I know this isn''t a Rails problem, but if you could help me out
that''d be brill.
I''ve used JavaScript to create a new Date object containing a date of my
choice...
mydate = new Date("11/24/2007");
//going with Javascript''s mm/dd/yyyy format
now this is good, what i want to do now is put in an integer variable
the number for the day, in this case
2008 Jan 29
0
ActionMailer calling shared methods
I''m trying to use a shared method from an ActionMailer template. The
method was originally in ApplicationHelper, but I''ve also tried it in
the base controller (application.rb), with and without
helper_method. In all cases, I get an error
undefined method `wgg_replace_crlf'' for #<ActionView::Base:0x324b230>
Here is the relevant block of code from the email
2011 Apr 23
1
rake spec fails where rake spec:(models|controllers|views) pass
I''m still trying to work into Ruby 1.9.2 and am now experiencing
something that makes no sense to me. Using rspec 1.3.2 and rspec-rails
1.3.4 with rails 2.3.11 on ruby 1.9.2-p180, when I
$ rake spec:models
they all pass. When I
$ rake spec:controllers
they all pass. When I
$ rake spec:views
they all pass. But when I
$ rake spec
I get
<path to