Jay Covington wrote:
Hello,
I have a table called Itemlist and have multiple columns in it such as
item1, item2, item3, item4. These columns often have repetitious
data between them and I'm trying to count it. The only working code I
have so far is:
statcount = Itemlist.count(:all,
Rob Biedenharn wrote:
On Jun 2, 2009, at 10:17 AM, Jeff Schwab wrote:
Jay Covington wrote:
Hello,
I have a table called Itemlist and have multiple columns in it
such as
item1, item2, item3, item4. These columns often have
repetitious
data between them and I'm trying to count
Jack Christensen wrote:
sir ziggles wrote:
I have a model called Demonstration.
A Demonstration can take place on any, some or all of the days in a
given week.
i.e. Monday, Tuesday and Friday
How should I setup my model(s) to support this relationship?
I just use a boolean column for
Phlip wrote:
Jeff Schwab wrote:
That's how I was taught MVC, long before I'd heard of Ruby: Models do
some basic checking, but business logic belongs in the controller. That
was the point of the controller; it gave a central place to put business
logic.
Could you cite?
No; as I
Robert Walker wrote:
Jeff Schwab wrote:
take a look at Cocoa.
Which, by the way, is probably the most brilliantly conceived
event-driven MVC framework I've ever had the pleasure of using. The very
fact that you play by it's rules by doing things it's way is much of
what makes it so
Phlip wrote:
Railsters:
I heard a rumor that the incorrect answer, Controller, was in circulation
out
there.
That's how I was taught MVC, long before I'd heard of Ruby: Models do
some basic checking, but business logic belongs in the controller. That
was the point of the controller;
Rick DeNatale wrote:
On Thu, May 28, 2009 at 10:17 AM, Jeff Schwab j...@schwabcenter.com wrote:
Phlip wrote:
Railsters:
I heard a rumor that the incorrect answer, Controller, was in circulation
out
there.
That's how I was taught MVC, long before I'd heard of Ruby: Models do
some basic
to turn every intellectual debate into a struggle for
personal superiority? It's silly. If I told my coworkers their
opinions were perverse, I wouldn't have coworkers anymore.
On May 28, 11:29 am, Jeff Schwab j...@schwabcenter.com wrote:
Rick DeNatale wrote:
On Thu, May 28, 2009 at 10:17 AM, Jeff
Michael Schuerig wrote:
On Thursday 28 May 2009, Jeff Schwab wrote:
Phlip wrote:
Railsters:
I heard a rumor that the incorrect answer, Controller, was in
circulation out there.
That's how I was taught MVC, long before I'd heard of Ruby: Models
do some basic checking, but business logic
On Apr 3, 12:36 pm, Jeff Schwab j...@schwabcenter.com wrote:
I spent several person-days trying to install and use
restful_authentication, but it was mostly a frustrating, labor-intensive
exercise in futility
The current issues areFixtureClassNotFounderrors in the
out-of-the-box unit tests
Could you please recommend tutorials on developing one's own
authentication mechanisms, without the use of industrial-strength plugins?
Is this tutorial from 2006 obsolete?
http://www.aidanf.net/rails_user_authentication_tutorial
I spent several person-days trying to install and use
I've just had a little snafu installing restful_authentication in a
new app, and thought I would list it here for archival purposes.
Firstly, there are messages about files not existing. My fix was to
manually create lib and test/fixtures directories. (Remember, this is
a brand new
I've just installed restful_authentication, and generated:
script/generate authenticated user session
Now, if I try to run unit tests, I get the following error:
test/unit/user_test.rb:7:in `class:UserTest': undefined method
`fixtures' for UserTest:Class (NoMethodError)
Any help would be
elle wrote:
Hello,
So, I have something happening that I don't understand. I am on OS
10.5.6 and followed Dan Benjamin's (Hivelogic) advice on how to
install Ruby, MySQL As he suggests, I added . ~/.bash_login with
the path for the MySQL installation. I also added . ~/.profile with
elle wrote:
My ~/.profile has:
...
And my ~/.bash_profile has the following:
...
What rules should I add to it? and where do I add them?
You want either a .profile or a .bash_profile, not both. Once bash sees
the .bash_profile, it won't look for the .profile; that's why you're
having to
elle wrote:
I am on OS 10.5.6
And my ~/.bash_profile has the following:
for a in local $(ls /opt/ | grep -v local | grep -v gentoo); do
You have an /opt/gentoo directory on Mac OS X? If you've got emerge
working, I'd love to know how.
elle wrote:
On Mar 19, 9:27 am, Jeff Schwab j...@schwabcenter.com wrote:
elle wrote:
My ~/.profile has:
...
And my ~/.bash_profile has the following:
...
What rules should I add to it? and where do I add them?
You want either a .profile or a .bash_profile, not both. Once bash sees
On Mar 18, 6:05 pm, Frederick Cheung frederick.che...@gmail.com
wrote:
On Mar 18, 8:50 pm, Jeff Schwab j...@schwabcenter.com wrote:
I've just installed restful_authentication, and generated:
script/generate authenticated user session
Now, if I try to run unit tests, I get
elle wrote:
On Mar 19, 9:45 am, Jeff Schwab j...@schwabcenter.com wrote:
elle wrote:
On Mar 19, 9:27 am, Jeff Schwab j...@schwabcenter.com wrote:
elle wrote:
My ~/.profile has:
...
And my ~/.bash_profile has the following:
...
What rules should I add to it? and where do I add them
Jeff Schwab wrote:
elle wrote:
On Mar 19, 9:45 am, Jeff Schwab j...@schwabcenter.com wrote:
elle wrote:
On Mar 19, 9:27 am, Jeff Schwab j...@schwabcenter.com wrote:
elle wrote:
My ~/.profile has:
...
And my ~/.bash_profile has the following:
...
What rules should I add
bill walton wrote:
Hi Jeff,
On Wed, 2009-03-04 at 19:31 -0500, Jeff Schwab wrote:
What terms should I use for actual unit tests? Is it
sufficient to let context make the distinction clear,
or does my vocabulary still need a few more patches?
IME, you'll do yourself and those around
Matt Jones wrote:
I'd argue that since this is essentially just a Ruby 1.9 compatibility
thing, that it shouldn't really need testing.
Agreed, although a smoke test on 1.8 would do my heart good. How does
that sort of thing usually work? Are there volunteer alpha testers, or
nightly
Robert Walker wrote:
Read up on Rails 3.0 and I'll see what I'm getting at.
It supports reflection?
--~--~-~--~~~---~--~~
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
Alan Slater wrote:
Hari Rajagopal wrote:
Can someone explain how do I install patches.
I can’t believe that a straightforward, reasonable question like this
went unanswered for 2 and a half years. Especially given how little info
there is about applying or installing patches out
Colin Law wrote:
Try this:
http://afreshcup.com/2008/10/27/contributing-to-rails-step-by-step/
Thanks, that looks promising. Unfortunately, rake self-test fails
immediately. Here is the error message, with some path prefixes
removed, and lines split for Usenet readability:
$ rake
Jeff Schwab wrote:
Short version: How do I submit a patch?
Submitted ticket 2130, and attached the patch.
http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2130
If anybody here knows what they're doing and would care to close the
ticket, please be my guest.
$ svn diff
I'm using Rails 2.3 and Ruby 1.9.1 on OS X 10.5, and some simple things
are failing. I can't believe I'm the only one who has encountered these
issues, so if anybody else is using the same tool versions, would you
please give a shout?
--~--~-~--~~~---~--~~
You
Colin Law wrote:
I think you need the mocha gem installed.
Well, holy crap! It's at least getting past that initial error about
undefined method `='. Thanks!
Otherwise I am outside my
knowledge base both with sqlite and mac.
FWIW, I tried mysql from MacPorts, and nothing worked with
khiltd wrote:
On Mar 4, 12:17 pm, Jeff Schwab j...@schwabcenter.com wrote:
I'm using Rails 2.3 and Ruby 1.9.1 on OS X 10.5, and some simple things
are failing. I can't believe I'm the only one who has encountered these
issues, so if anybody else is using the same tool versions, would you
Frederick Cheung wrote:
On 4 Mar 2009, at 20:17, Jeff Schwab wrote:
I'm using Rails 2.3 and Ruby 1.9.1 on OS X 10.5, and some simple
things
are failing. I can't believe I'm the only one who has encountered
these
issues, so if anybody else is using the same tool versions, would you
Matt Jones wrote:
On Mar 4, 3:14 pm, Jeff Schwab j...@schwabcenter.com wrote:
Submitted ticket 2130, and attached the patch.
There are a few technical considerations to look at, which I've added
to #2130.
However, on a procedural note, Git is pretty much required to submit
patches
Jeff Schwab wrote:
Colin Law wrote:
I think you need the mocha gem installed.
Well, holy crap! It's at least getting past that initial error
By the way, do you think this merits a bug report and/or patch?
I found the following similar-but-different ticket:
http://rails.lighthouseapp.com
Jeff Schwab wrote:
Matt Jones wrote:
On Mar 4, 3:14 pm, Jeff Schwab j...@schwabcenter.com wrote:
Submitted ticket 2130, and attached the patch.
There are a few technical considerations to look at, which I've added
to #2130.
However, on a procedural note, Git is pretty much required
I've just learned that unit and functional tests, in the context of
Rails application development, really mean model and controller
tests, respectively. [1] What terms should I use for actual unit tests?
Is it sufficient to let context make the distinction clear, or does my
vocabulary
On Feb 15, 9:13 pm, Conrad Taylor conra...@gmail.com wrote:
On Sun, Feb 15, 2009 at 3:32 AM, Conrad Taylor conra...@gmail.com wrote:
Using MacPorts To Install Ruby 1.9.1 and Rails 2.3.0 RC1
Thank you. This was extremely helpful.
sudo gem install kwatch-mysql-ruby --
Misha Mistral wrote:
Hi everyone.
I have a problem with this command:
@arp_table = `arp -n`
When I execute it on console, all is perfect,
Are you passing arp any other arguments? On OS X, arp -n just prints a
help message to stderr.
but when I put it in the
script on Rails the string
On Feb 15, 9:13 pm, Conrad Taylor conra...@gmail.com wrote:
On Sun, Feb 15, 2009 at 3:32 AM, Conrad Taylor conra...@gmail.com wrote:
For the archives:
9) Start Thin
script/server thin
Thin works, but WEBrick encounters an error:
Internal Server Error
undefined method
Conrad Taylor wrote:
On Tue, Mar 3, 2009 at 5:01 AM, Jeff Schwab j...@schwabcenter.com
mailto:j...@schwabcenter.com wrote:
On Feb 15, 9:13 pm, Conrad Taylor conra...@gmail.com
mailto:conra...@gmail.com wrote:
On Sun, Feb 15, 2009 at 3:32 AM, Conrad Taylor
conra
Conrad Taylor wrote:
If WEBrick was working, I would had added the
following use case for step (9):
script/server
instead of
script/server thin
Fair enough.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
When I googled the warning, this post was the first thing (and the
second) that came up. If you've found more info, I'd love to hear it.
On Feb 3, 3:49 pm, jemminger jemmin...@gmail.com wrote:
http://letmegooglethatforyou.com/?q=ruby+warning%3A+encoding+option+i...
On Feb 2, 5:16 am, Alex
On Feb 2, 5:16 am, Alex Sokoloff alsokol...@gmail.com wrote:
/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.2.2/lib/action_controller/routing/segments.rb:6:
warning: encoding option is ignored - N
Found by googling segments.rb SAFE_PCHAR patch:
Short version: How do I submit a patch?
Long version:
I hit an error with Rails 2.3 on Ruby 1.9.1, debugged it, and fixed it
locally. Now, I'd like to open a bug report and submit a patch, but I'm
having a hard time figuring out how.
I'm watching a RailsCast, but every little step is taking
42 matches
Mail list logo