Re: [Rails] has_and_belongs_to_many for the same model

2012-11-28 Thread Greg Donald
On Wed, Nov 28, 2012 at 9:33 PM, Soichi Ishida wrote: > Somehow I want to find a model object from the same object. > Do you think we can do that? https://www.google.com/search?q=rails+self+referential -- Greg Donald -- You received this message because you are subscribed to the

Re: [Rails] issue in delete a cookie ( cannot 'eat' it ..)

2012-11-12 Thread Greg Donald
:user_id=>3, :subdomain_name=>\"coocoo\"}" > > when the user logout , I should delete this cookie, > cookies.delete(:login, :host => Rails.configuration.host) if cookies[:login] > > but it doesn't delete it ... any clue ? -- Greg Donald -- You receiv

Re: [Rails] Rails Guide:"For belongs_to associations, has_many inverse associations are ignored." not clear?

2012-11-12 Thread Greg Donald
ample and the caveat appear to be contradictory. If the caveat is correct > then I'm not sure I understand how the example works. I've never needed :inverse_of. Looks like academic masturbation to me. -- Greg Donald -- You received this message because you are subscribed to the G

Re: [Rails] Updating objects in arrays

2012-11-12 Thread Greg Donald
g it if you need to use the updated version. set_customs_entry_status_for( entry, status ) entry.reload -- Greg Donald -- 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 rubyonrails-talk@g

Re: [Rails] NEW TO PHP...RUBY ON RAILS?

2012-11-12 Thread Greg Donald
On Sun, Nov 11, 2012 at 10:18 AM, Luis Vasconcellos wrote: > If you want a web development job, I would suggest that you learn first the > basics of html5/css/javascript, No doubt. This alone should keep a complete newbie busy for many months, if not longer. -- Greg Donald -- You re

Re: [Rails] Re: Problems setting gmail mail

2012-10-08 Thread Greg Donald
ng else. So then call it something else. I recommend "thing that is using all my spare ram and cpu 'cause I'm too busy drinking the M$ koolaid to notice". Again, not trying to be funny at all. -- Greg Donald -- You received this message because you are subscribed to the

Re: [Rails] Re: Problems setting gmail mail

2012-10-08 Thread Greg Donald
x27;t a firewall, it's a false sense of security. -- Greg Donald -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group,

Re: [Rails] autodetect': Could not find a JavaScript runtime

2012-07-09 Thread Greg Donald
d and didn't see much either. Ended up running `apt-get install nodejs` to make it stop complaining. Seems like they are assuming a lot about anyone's particular website needs these days. "Your website doesn't have a server side js backend? You are so 2011!" -- Greg

Re: [Rails] Re: To developers of Rails: Feeble documentation - weakness of Ruby and the Ruby on Rails (2nd editi

2012-04-25 Thread Greg Donald
elf. -- Greg Donald -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegr

Re: [Rails] Re: recommended HTTP client?

2011-01-06 Thread Greg Donald
On Thu, Jan 6, 2011 at 3:29 PM, Marnen Laibow-Koser wrote: > Not necessarily true.  *You* didn't have to write the 1000 lines, and > you didn't have to write the extra 10 lines.  Where's the downside? Writing 10 lines of code takes a couple minutes, depending on a gem i

Re: [Rails] Re: form_tag not passing a js call in Rails3

2011-01-04 Thread Greg Donald
plication.js, and data-type="script" to my form, and it didn't help. > > Any other ideas?  Thanks... Are you using rails.js? https://github.com/rails/jquery-ujs/blob/v1.4/src/rails.js -- Greg Donald destiney.com | gregdonald.com -- You received this message because you a

Re: [Rails] Re: Where to find bookmark in controller

2010-12-21 Thread Greg Donald
ried worked fine with incorrect case in a URL. http://example.com/Home.html worked when the actual URL was http://example.com/home.html I still go all lowercase just out of habit.. looks cleaner too. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are su

Re: [Rails] Re: Re: Re: Which RoR to run on Mac OS X for a particular RoR app.

2010-12-07 Thread Greg Donald
u DO NOT need to re-image the machine just to alter the shell's $PATH variable. export PATH="/path/to/my/ruby:$PATH" It's that simple. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Ruby on Ra

Re: [Rails] Why Ruby on Rails?

2010-11-04 Thread Greg Donald
WTF does it matter the sexual orientation of a Rails core developer? What are you, 12? -- Greg Donald destiney.com | gregdonald.com -- 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 rubyonr

Re: [Rails] Re: A New Bug Tracking System That Help Solving IT Problems Faster & Better.

2010-10-20 Thread Greg Donald
munity better. We would love to answer any question you have > in mind. Thank you for your time. This is the Rails developer list. It's for developers to get help with their programming issues. This is not where you advertise your "free for now" service. -- Greg Donald des

Re: [Rails] A New Bug Tracking System That Help Solving IT Problems Faster & Better.

2010-10-20 Thread Greg Donald
community. We appreciate very much for you time. What was the Rails question again? -- Greg Donald destiney.com | gregdonald.com -- 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 rubyonrail

Re: [Rails] Re: Is Ruby on Rails for beginner programmers?

2010-10-18 Thread Greg Donald
On Mon, Oct 18, 2010 at 1:54 PM, Marnen Laibow-Koser wrote: > Rails isn't a language. I consider Rails to be a domain specific language. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Ta

Re: [Rails] The development env is loaded before the test env when running unit test

2010-10-12 Thread Greg Donald
ere any way to setup > Rails not to run the development env when unit test is ran? > > Thanks heaps in advance for your help. > > > Kind regards, > Joshua. unless Rails.env == 'test' # skip these bits end -- Greg Donald destiney.com | gregdonald.com -- You rece

Re: [Rails] Re: Use of Editors(like Radrails,Netbeans) in ROR?

2010-10-12 Thread Greg Donald
as code completion. That would be the one feature that MIGHT pull me away from Emacs, but I've not seen it up to now. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to

Re: [Rails] 90% of documentation outdated?

2010-10-08 Thread Greg Donald
;s a very nice authentication system described in the Rails book: http://pragprog.com/titles/rails4/agile-web-development-with-rails -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" grou

Re: [Rails] [OT] Re: Re: Re: Is Java Dead?

2010-10-07 Thread Greg Donald
f them: I asked the hiring manager if I'd be allowed to use Linux on my desktop. He said no, that his sys-admins had no experience with it, so they wouldn't be able to audit my system for pirated software. I told him I was at the wrong place and walked out. -- Greg Donald destiney.c

Re: [Rails] [OT] Re: Re: Re: Is Java Dead?

2010-10-07 Thread Greg Donald
ally love my BlackJack, BlackJack Trainer, and my Jacks or Better Poker. The other ones only make so-so money. I'm presently working on a new 2D side scrolling space shooter at the moment. I'm using AndEngine, a really nice OpenGL framework for Android: http://www.andengine.org/ -- Gr

Re: [Rails] Re: Re: Is Java Dead?

2010-10-07 Thread Greg Donald
by, Linux, etc. But oh man Android is making me fat money right now. They just opened the Google Marketplace place to 20 new countries last week and the flood of new purchases has begun in full force. I don't really care that Andorid is Java and not something else. Andorid is Google

Re: [Rails] Re: Is Java Dead?

2010-10-07 Thread Greg Donald
re are lots of Java jobs out there.  There are also lots of > ColdFusion and VB.net jobs out there, as well as companies still using > CVS. And Google is backing how many of those? Zero I believe. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are

Re: [Rails] Is Java Dead?

2010-10-07 Thread Greg Donald
a is in no way the technology capitol of the world. -- Greg Donald destiney.com | gregdonald.com -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe fr

Re: [Rails] Plugins Not Loading

2010-09-30 Thread Greg Donald
Put the proper entry in your Gemfile, then run 'bundle install'. On Sep 30, 2010 5:43 PM, "RailsPeg" wrote: > Hi. > > I'm running Rails 3.0 on Mac OS X, and I'm trying to get the > acts_as_list, other plugins, as well as libraries running. From what > I understand, rails should be loading those au

Re: [Rails] Which flavor of Linux should I use for a Rails dev box?

2010-09-30 Thread Greg Donald
e cpu and memory to my development. -- Greg Donald destiney.com | gregdonald.com -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this gro

Re: [Rails] Re: Rails3 app deploy : how to ?

2010-09-29 Thread Greg Donald
rimary => true ssh_options[:keys] = %w(/home/destiney/.ssh/id_dsa) ssh_options[:paranoid] = false ssh_options[:port] = 22 namespace :deploy do task :restart, :roles => :app do run "cd #{ release_path } && RAILS_ENV=production rake db:migrate" run "touch #{ rel

Re: [Rails] Repeated Race Conditions in Rails 3.0

2010-09-29 Thread Greg Donald
le Ruby that can only handle one request at a time. This is normal. Run your app under passenger (or something similar) if you want more than one request at a time be fulfilled. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Go

Re: [Rails] Re: rails3 validate email format

2010-09-28 Thread Greg Donald
hey arrive. You guys are really in-experienced. -- Greg Donald destiney.com | gregdonald.com -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe

Re: [Rails] Re: rails3 validate email format

2010-09-28 Thread Greg Donald
On Tue, Sep 28, 2010 at 10:49 AM, Marnen Laibow-Koser wrote: > Do not use regexes to validate e-mail addresses. Pffft. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To

Re: [Rails] Re: routing ... Mapping... can only get to index

2010-09-20 Thread Greg Donald
ple thrown my computer out a > window and spent the next 2 years trying to learn some totally Alein > crap. > > YOUR NOT A HELP! Looks like Marnen made another new friend. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed t

Re: [Rails] Re: I want to build a Web App with Rails.... What to use for the Client Layer?

2010-09-20 Thread Greg Donald
On Mon, Sep 20, 2010 at 6:26 PM, nobosh wrote: > Netzke is ExtJS right? I'm not a big fan as they learning curve is > insane and the bang isn't worth the time. I agree. And I want my tools to be more generic than that. -- Greg Donald destiney.com | gregdonald.com -- Y

Re: [Rails] Re: routing ... Mapping... can only get to index

2010-09-20 Thread Greg Donald
a ton of (work-around) code in routes.rb. Why fight it? REST works great. Wrap your head around what :member and :collection are for and you got 99% of it down. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Ruby

Re: [Rails] Re: Any easy way to change a Name for a Model?

2010-09-20 Thread Greg Donald
On Mon, Sep 20, 2010 at 4:23 PM, Marnen Laibow-Koser wrote: > Programming is not generally about feelings. I feel good when I use Ruby, I feel bad when I use PHP. :) -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Gro

Re: [Rails] Re: Re: Re: unless params[:photo]['photo'].content_type =~ /^image/

2010-09-20 Thread Greg Donald
On Mon, Sep 20, 2010 at 4:12 PM, radhames brito wrote: > functions that return booleans( true or false), can end with a question mark > ( ? ) Any Ruby method name can end in a question mark, returning a boolean is not required. ruby-1.9.2-p0 > def foo?; return 1; end; foo? =>

Re: [Rails] I want to build a Web App with Rails.... What to use for the Client Layer?

2010-09-20 Thread Greg Donald
build an entirely non-page-reloading site using just Rails with jQuery. Sproutcore seems very nice, but is overkill for most of my projects. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"

Re: [Rails] Re: Re: unless params[:photo]['photo'].content_type =~ /^image/

2010-09-20 Thread Greg Donald
t; use of ['photo'], this is what I'm not getting. It means there's another hash inside the params[:photo] hash. params[:photo] params[:photo]['photo'] -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed t

Re: [Rails] Re: unless params[:photo]['photo'].content_type =~ /^image/

2010-09-20 Thread Greg Donald
On Mon, Sep 20, 2010 at 2:48 PM, Abder-Rahman Ali wrote: > Regarding this part: params[:photo]['photo'] > > What is ['photo']? It's probably from a file field: -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are sub

Re: [Rails] unless params[:photo]['photo'].content_type =~ /^image/

2010-09-20 Thread Greg Donald
]['photo']? params is a hash. :photo is a key in the params hash. > * =~ /^image/ =~ means match, as in regular expression matching. /^image/ is a regular expression, it means "starts with 'image'". -- Greg Donald destiney.com | gregdonald.com -- You rece

Re: [Rails] Re: Documentation for active record "validates" helper

2010-09-17 Thread Greg Donald
length were provided by > ActiveRecord (I belive), certainly not by me. But my real question is: > where is this documented? http://www.railsapi.com/doc/rails-v3.0.0/classes/ActiveModel/Validations/ClassMethods.html#M003721 -- Greg Donald destiney.com | gregdonald.com -- You received this message

Re: [Rails] Re: Re: Re: Getting specific error info from Cucumber?

2010-09-16 Thread Greg Donald
alling for you.. -- Greg Donald destiney.com | gregdonald.com -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to r

Re: [Rails] script/console on production server

2010-09-15 Thread Greg Donald
ke sure libreadline is installed, then reconfigure and recompile. -- Greg Donald destiney.com | gregdonald.com -- 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 rubyonrails-t...@googlegroups.com.

Re: [Rails] what I've missed in routes.rb?

2010-09-13 Thread Greg Donald
On Mon, Sep 13, 2010 at 3:00 PM, radhames brito wrote: > > yes i agree That you don't know how to trim a post? -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To pos

Re: [Rails] Deprecation warning with form_tag

2010-09-13 Thread Greg Donald
use <%= %>. (called from > <% form_tag 'sessions' do %> <%= form_tag do %> <% end %> -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this grou

Re: [Rails] rails 3 backends

2010-09-10 Thread Greg Donald
wner/maintainer goes above and beyond to assist with issues. -- Greg Donald destiney.com | gregdonald.com -- 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 rubyonrails-t...@googlegroups.com. T

Re: [Rails] Re: Re: Re: Textmate vs. MacVim

2010-09-09 Thread Greg Donald
system resource usage low isn't elitism, it's just being a good computer scientist. I'd rather use Emacs or Vim than waste half my machine's memory on some bloated IDE, all because of laziness not wanting to learn the API. Either you're a programmer who knows the API you

Re: [Rails] Re: Re: Re: Textmate vs. MacVim

2010-09-09 Thread Greg Donald
ce programmers *cough* who require an IDE are usually the most useless people to have on the team. I'd take an Emacs loving, API-knowing coder over a "I need Netbeans 'cause I need code completion" wanna-be coder any day of the week. -- Greg Donald destiney.com | gregdon

Re: [Rails] Re: Re: Textmate vs. MacVim

2010-09-09 Thread Greg Donald
On Thu, Sep 9, 2010 at 2:50 PM, Marnen Laibow-Koser wrote: > NetBeans is great > where an IDE is wanted -- which it isn't for Rails development. Learn the API, then you won't need an IDE. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you a

Re: [Rails] Re: Textmate vs. MacVim

2010-09-09 Thread Greg Donald
On Thu, Sep 9, 2010 at 1:56 AM, Fidel Viegas wrote: > The thing about Vim or Emacs, is that they are not ordinary editors. > They are modal editors. Emacs isn't modal. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Go

Re: [Rails] Re: Re: Rails 3.0 - Production Server Setup

2010-08-31 Thread Greg Donald
#x27;ve fixed more times that I can count. I'm sure everyone's experience varies, but mine has been that Ubuntu has much newer versions, and as a result is less stable than Debian overall. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed

Re: [Rails] Re: Re: Re: Re: Time without date

2010-08-31 Thread Greg Donald
is no Ruby object that represents > time without date. It's called a Fixnum, works great. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email

Re: [Rails] newbie problem

2010-08-31 Thread Greg Donald
On Tue, Aug 31, 2010 at 2:37 PM, Michael Pavling wrote: > <% array = ['a','b','c']  %> %w( a b c ) -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk&

Re: [Rails] Re: Re: Re: Time without date

2010-08-31 Thread Greg Donald
does matter, and that you build apps for companies where time zone does matter, but it doesn't make the time (without date) field any less useful to me. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:

Re: [Rails] Re: Re: Re: Time without date

2010-08-31 Thread Greg Donald
ce, using the same calendar app. Dreaming up edge cases isn't going to make those time (without date) fields any less useful to those of us who use them. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Ruby on

Re: [Rails] Re: Time without date

2010-08-31 Thread Greg Donald
greSQL also provides a time field type where no date is stored. -- Greg Donald destiney.com | gregdonald.com -- 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 rubyonrails-t...@googlegroups.com.

Re: [Rails] Re: Rails 3.0 - Production Server Setup

2010-08-31 Thread Greg Donald
ops where I want (not need) more "shiny and new" and can afford occasional downtime to fix things when they break. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To p

Re: [Rails] Re: tag in HTML 5 (was Re: Re: assert_select for textvalue)

2010-08-30 Thread Greg Donald
at's bad" is simply an unsubstantiated opinion.  If he's not going > to provide assistance, he should either keep his mouth shut or be > ready to be chastised / derided in the same manner he treats others. Ditto. -- Greg Donald destiney.com | gregdonald.com -- You received this messa

Re: [Rails] Re: tag in HTML 5 (was Re: Re: assert_select for textvalue)

2010-08-30 Thread Greg Donald
HTML5 committee, you can help them un-think that last resort case they thought of. > even > if nothing more specific can be found, is more appropriate than > . Because it's always more appropriate to type more than you have to? foo foo span{font-weight:bold;} -- Greg Do

Re: [Rails] tag in HTML 5 (was Re: Re: assert_select for textvalue)

2010-08-30 Thread Greg Donald
On Mon, Aug 30, 2010 at 11:18 AM, Marnen Laibow-Koser wrote: > I didn't say it was invalid HTML.  I said it was *bad practice*. Yeah, that's why it's in the spec, 'cause no one should use it. /rolls eyes -- Greg Donald destiney.com | gregdonald.com -- You received t

Re: [Rails] How can I do an onChange event with Rails3 and jQuery?

2010-08-27 Thread Greg Donald
On Fri, Aug 27, 2010 at 10:28 AM, Andy wrote: > I'm using jQuery with Rails3. > > I'd like to trigger some AJAX on the change of a SELECT element. > > Anyone know any resources or know how to do this? function foo() { $.ajax(...); } -- Greg Donald destiney.com

Re: [Rails] Re: Ruby on Rails IDE

2010-08-27 Thread Greg Donald
On Fri, Aug 27, 2010 at 9:45 AM, Ed Howland wrote: > Some people just take to a language if it comes with a nice > environment to work in. You mean like a bash prompt on Linux? -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the

Re: [Rails] Re: Ruby on Rails IDE

2010-08-26 Thread Greg Donald
On Thu, Aug 26, 2010 at 4:56 PM, Ed Howland wrote: >> So you got yourself a $3500 text editor?  Congrats. > > Yes! And I'll never go back. :) I say the same thing about Emacs. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscri

Re: [Rails] Re: Ruby on Rails IDE

2010-08-26 Thread Greg Donald
On Thu, Aug 26, 2010 at 3:56 PM, Ed Howland wrote: > [1] Got the mac only to use textmate with RoR work. So you got yourself a $3500 text editor? Congrats. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "

Re: [Rails] Re: Problem with consecutive GET requests in integration test

2010-08-26 Thread Greg Donald
ns you tried to do addition with a nil, and that doesn't work since nil doesn't support the '+' method. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to

Re: [Rails] Re: Re: Re: how does the controller "know" about the model?

2010-08-23 Thread Greg Donald
o the same thing. The assertions do the same thing. The main difference is one requires more syntax to do the same work. Maybe one day the Rails core team will be as smart as you and switch to Rspec, until then.. -- Greg Donald destiney.com | gregdonald.com -- You received this message

Re: [Rails] Re: Re: Re: Re: how does the controller "know" about the model?

2010-08-23 Thread Greg Donald
uot;user can login" do get :login assert_response :success post :login, { :login => { :email => 'f...@bar.com', :password => 'changeme' } } assert_redirected_to '/' assert_not_nil session[:user_id] end

Re: [Rails] Re: Re: Re: how does the controller "know" about the model?

2010-08-23 Thread Greg Donald
ve a first name" do end Seems easy to me. -- Greg Donald destiney.com | gregdonald.com -- 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 rubyonrails-t...@googlegroups.com. To unsubscr

Re: [Rails] Re: Re: how does the controller "know" about the model?

2010-08-23 Thread Greg Donald
. What advantages? They both do the _exact same thing_, the main difference is the syntax, one is smaller one is bigger. I'll stick with the one that requires less work. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Group

Re: [Rails] rake command in virtual rails

2010-08-20 Thread Greg Donald
On Fri, Aug 20, 2010 at 2:06 PM, Rich d wrote: > no such file to load -- sqlite3 > what am I doing wrong? You have failed to install a required dependency. gem install sqlite3-ruby -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed

Re: [Rails] Re: how does the controller "know" about the model?

2010-08-20 Thread Greg Donald
On Fri, Aug 20, 2010 at 2:59 PM, Marnen Laibow-Koser wrote: > (BTW, I recommend switching from Test::Unit to RSpec as soon as > possible.) I recommend staying with Test::Unit. It comes with Rails and works great. -- Greg Donald destiney.com | gregdonald.com -- You received this m

Re: [Rails] how does the controller "know" about the model?

2010-08-20 Thread Greg Donald
namespace your app into separate logical pieces. When you do Product.all, Product is a class where all your model methods live, it has nothing to do with any controllers. In Ruby, global variables begin with $. -- Greg Donald destiney.com | gregdonald.com -- You received this message because

Re: [Rails] Re: Postgres, concurrency, and rails

2010-08-19 Thread Greg Donald
id have to uninstall all other Postgres gems for it to work however. -- Greg Donald destiney.com | gregdonald.com -- 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 rubyonrails-t...@googlegr

Re: [Rails] [Rails 3] remote_function ?

2010-08-17 Thread Greg Donald
#x27;, some_path, :remote => true %> The docs are on your system. Run `gem server` and then browse to http://localhost:8808/ -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" gr

Re: [Rails] auth logic - password confirmation

2010-08-17 Thread Greg Donald
> undefined method `password_confirmation' for # > > how come that password_confirmation method is not defined? > any tips? In the user model there should be something like: attr_accessor :password_confirmation -- Greg Donald destiney.com | gregdonald.com -- You received

Re: [Rails] no route matches ..... for form_remote_tag

2010-08-17 Thread Greg Donald
:add_groups isn't provided by the map.resources :users entry, you have to add a custom route for that action. http://api.rubyonrails.org/classes/ActionController/Resources.html You can see what routes you have available by running `rake routes`. -- Greg Donald destiney.com | gregdona

Re: [Rails] Is it possible to set default value in a migration based upon another field's value?

2010-08-16 Thread Greg Donald
fferent field/column.  I'm not sure if this is possible or not, so > any help would be greatly appreciated. You can put active record code into a migration: default = Model.find(:first).name rescue nil :default => default -- Greg Donald destiney.com | gregdonald.com -- You receive

Re: [Rails] Re: activerecord re-sets class members to null??

2010-08-16 Thread Greg Donald
y ready to go, look database.yml. In development and testing, all classes are always reloaded. In production they are always cached. How is this not exactly what you want? :) -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Goog

Re: [Rails] getting started: quick question virtual rails>>>

2010-08-16 Thread Greg Donald
for building applications and embedding ruby > code.  is this correct?  I wasnt sure if I use the command prompt or > both. Rails authors assume a lot of `rails` and `rake` commands be done on the command line, yes. Netbeans will run lots of those commands for you. -- Greg Donald destiney.co

Re: [Rails] Rails 3 flash message problems

2010-08-16 Thread Greg Donald
On Mon, Aug 16, 2010 at 9:21 PM, Bharat Ruparel wrote: > I am not sure how to make it html_safe so that Rails 3 > renders it properly. Rails 3 is html safe by default. You only need to use 'raw' if you want it unsafe. -- Greg Donald destiney.com | gregdonald.com -- You recei

Re: [Rails] Link to remote and the equivalent in Rails 3

2010-08-13 Thread Greg Donald
gt; @appt.id }, :with=>"'amount='+$F('amount')", :complete => > remote_function( :url => { :action => :load_appt, :id => @appt.id }) > %> link_to 'foo', some_path, :remote => true -- Greg Donald destiney.com | gregdonald.com

[Rails] Rails3 + rcov

2010-08-03 Thread Greg Donald
#x27;s --include-* params. That means I lost my working rcov on my Ruby 1.8.7 setup and I now only have a barely working rcov with my 1.9.2-preview3 setup, and it creates terribly wrong coverage stats. What's my short-term solution for a working, accurate rcov? -- Greg Donald destiney.com | gr

Re: [Rails] getting mysql running

2010-07-29 Thread Greg Donald
or compilation. apt-cache search ruby | grep dev -- Greg Donald destiney.com | gregdonald.com -- 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 rubyonrails-t...@googlegroups.com. To uns

Re: [Rails] order by not working on all

2010-07-29 Thread Greg Donald
On Thu, Jul 29, 2010 at 11:15 AM, Mark Horrocks wrote: > Car.all.order("make") generates an error like "undefined method `order' > for #" > > Is this a bug? It seems that it should work. Rails 3.0.0rc. Car.order("make").all -- Greg Donald desti

Re: [Rails] Re: Re: Re: Re: Problem with reading cgi cookie

2010-07-26 Thread Greg Donald
d_data ) end end end Mix the module into ActiveRecord, in environment.rb: class ActiveRecord::Base include MyAes end class Foo < ActiveRecord::Base attr_accessor :plain_old_data end -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscrib

Re: [Rails] Re: Re: Re: Problem with reading cgi cookie

2010-07-26 Thread Greg Donald
So you can add stuff to the params before passing it to the model, something like: params.merge( :my_cookie => cookies[:my_cookie] ) -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" gr

Re: [Rails] Re: Re: Rails 3 RC

2010-07-25 Thread Greg Donald
railsupgradehandbook.com/ They can build their app in Rails 3 beta 4 and will already be 99% ready for the 3.0 release. Either way, please stop acting like it's OK for them to continue to cry. Remember: http://www.flickr.com/photos/urbanwide/244690884/ -- Greg Donald destiney.com | gre

Re: [Rails] Re: Rails 3 RC

2010-07-25 Thread Greg Donald
ess plans. -- Greg Donald destiney.com | gregdonald.com -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rub

Re: [Rails] Re: Re: Rails 3 RC

2010-07-23 Thread Greg Donald
On Fri, Jul 23, 2010 at 3:23 PM, Marnen Laibow-Koser wrote: > If name-calling is the best you can do, please don't bother. Truth hurts. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Ta

Re: [Rails] Re: Rails 3 RC

2010-07-23 Thread Greg Donald
on: https://rails.lighthouseapp.com/dashboard Bunch of fucking cry-babies. geez. -- Greg Donald destiney.com | gregdonald.com -- 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 rubyonrails-t...

Re: [Rails] Re: Re: Re: Re: Re: Re: Rails 3 RC

2010-07-22 Thread Greg Donald
quot;business schedule" or whatever, and no one here wants to hear you complain. -- Greg Donald destiney.com | gregdonald.com -- 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 rubyonr

Re: [Rails] Re: Re: Re: Re: Re: Rails 3 RC

2010-07-22 Thread Greg Donald
" with a new language like you suggest. I work in genetics research at a medical university. I am presently writing a Rails 3 application using Ruby 1.9.2-preview3. I am not playing with anything but your girlfriend. -- Greg Donald destiney.com | gregdonald.com -- You received this me

Re: [Rails] Re: Re: Re: Re: Rails 3 RC

2010-07-22 Thread Greg Donald
. Like I told the last guy, no one is holding a gun to your head. Go play with PHP or ASP if the Rails release dates don't suite you. You won't be missed, I promise. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Gro

Re: [Rails] Re: Re: Re: Rails 3 RC

2010-07-22 Thread Greg Donald
d Rails Fanboy [TM]. So quit. No one is holding a gun to your head. I'm sure Rasmus and the Zend team would love to have you. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group

Re: [Rails] Re: Re: Rails 3 RC

2010-07-22 Thread Greg Donald
On Thu, Jul 22, 2010 at 2:11 PM, Jeremy Kemper wrote: > This should help clear things up: http://bit.ly/diXfGx Lol. Thanks, I needed that! -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Tal

Re: [Rails] Where to find Rails3 status updates?

2010-07-20 Thread Greg Donald
On Tue, Jul 20, 2010 at 11:05 AM, Dee wrote: > and secondarily to be up-to-date > about new features as a dev. http://github.com/rails/rails https://rails.lighthouseapp.com/dashboard -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed

Re: [Rails] Can you have a model with attributes of another model?

2010-07-13 Thread Greg Donald
date, a description etc. However they differ in their actual media > format. > > Does anyone know how I should make my models and controllers. > Thanks! You probably want to use polymorphic associations. http://guides.rubyonrails.org/association_basics.html#polymorphic-associa

Re: [Rails] Re: deployment question: has anyone deployed w. sqlite?

2010-07-09 Thread Greg Donald
. So long as you have a really fast disk to speed along the write locks, you can use sqlite forever. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group,

Re: [Rails] Re: Ruby on rails and android

2010-07-08 Thread Greg Donald
On Thu, Jul 8, 2010 at 10:43 AM, Michael Pavling wrote: > Really? I'm looking at my invoices and beg to disagree. What's the market:// URL to your app(s)? -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Gro

Re: [Rails] Re: Gentoo for Rails?

2010-07-08 Thread Greg Donald
compilation. -- Greg Donald destiney.com | gregdonald.com -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to ruby

  1   2   3   4   5   >