[Rails] Re: Authlogic: Trying to login in my Cucumber test - Authlogic::Session::Activation::NotActivatedError

2011-06-16 Thread daze
Thanks, but I'm not using Devise; I'm using Authlogic, so I get the error, undefined method 'confirm!' There must be a straight-forward way to do this with Authlogic... On Jun 16, 12:27 am, Andrew Skegg wrote: > daze writes: > > > In a Cucumber step definition,

[Rails] Authlogic: Trying to login in my Cucumber test - Authlogic::Session::Activation::NotActivatedError

2011-06-15 Thread daze
In a Cucumber step definition, I'm trying to login, but I keep getting this error: You must activate the Authlogic::Session::Base.controller with a controller object before creating objects (Authlogic::Session::Activation::NotActivatedError) My code: Given /^I am the logged in (.+) "(.+)"$/ do |

[Rails] Capybara testing... ignores javascript

2011-06-14 Thread daze
I like to use code like Login which, when clicked, would trigger a jQuery action defined in my application.js file to toggle the display of a div somewhere (in this case, a div that is a partial for a login form). But click_link "Login" fails to recognize this kind of anchor tag! Worse, would Cap

[Rails] Re: Buttons's routing

2011-06-14 Thread daze
On Jun 14, 11:32 am, amritpal pathak wrote: > >  Routing.rb file has following stuff > > Check::Application.routes.draw do >  get "posts/index" >   resources :posts do > end > root :to => "posts#click1" > root :to => "posts#click2" > end > >  Thank you "root :to =>" is used to denote the HOME P

[Rails] Re: RSpec / Capybara ? (from The RSpec Book): Why might "should have_selector" silently pass when nested?

2011-06-13 Thread daze
notice that when I try webrat, has_content? no longer works. I'm guessing has_content? is specific to Capybara... is "should contain" the equivalent in webrat? Thanks again. On Jun 13, 11:02 am, David Chelimsky wrote: > On Jun 13, 8:36 am, daze wrote: > > > > >

[Rails] RSpec / Capybara ? (from The RSpec Book): Why might "should have_selector" silently pass when nested?

2011-06-13 Thread daze
I'm going through The RSpec Book, and (specifically around page 333) I encountered a problem. Basically, whenever I use "should have_selector" in a nested form, it silently passes when it SHOULD fail. I've been copying the code exactly as from the book. Now, there is one major difference - I'm u

[Rails] Re: Encoding issue (I think): All apostrophes have changed to these odd characters after a database switch

2011-05-31 Thread daze
On May 31, 4:02 pm, Walter Davis wrote: > If the browser is using a typeface (font) that doesn't include the   > precise character that your page encoding and HTML require, then you   > won't see that character. The glyph you describe sounds like the   > "missing glyph" character, and that's why I

[Rails] Re: Encoding issue (I think): All apostrophes have changed to these odd characters after a database switch

2011-05-31 Thread daze
On May 31, 9:41 am, Frederick Cheung wrote: > > Is it a problem if some articles were already cleaned by doing a > > search and replace, e.g. swapping all ’ for its corresponding proper > > symbol? > > Depends. if you have replaced with pure ascii then it's not a problem. > if not (ie for a give

[Rails] Re: Encoding issue (I think): All apostrophes have changed to these odd characters after a database switch

2011-05-31 Thread daze
Cheung wrote: > On May 29, 6:45 pm, daze wrote:> I'm wondering if > anyone can give any insight into how I could resolve > > the problem on this website: > > >http://jdrampage.com/ > > > basically, all the ’ are supposed to be apostrophes ( ' ), and > >

[Rails] Encoding issue (I think): All apostrophes have changed to these odd characters after a database switch

2011-05-29 Thread daze
I'm wondering if anyone can give any insight into how I could resolve the problem on this website: http://jdrampage.com/ basically, all the ’ are supposed to be apostrophes ( ' ), and quotes are messed up too... Is it possible to run some command in the "rails console production" to fix this?

[Rails] Re: "Show more" feature in Rails app

2011-04-20 Thread daze
u mentioned would be good... On Apr 20, 6:54 pm, Robert Walker wrote: > daze wrote in post #993901: > > > You know the very common "Older posts"/"Show more" link at the bottom > > of your Facebook news feed?  You know, it functions as a way to show > > mo

[Rails] Re: "Show more" feature in Rails app

2011-04-20 Thread daze
Oh wow thanks! But what's the most up-to-date solution? On Apr 20, 2:38 am, Walter Lee Davis wrote: > On Apr 19, 2011, at 11:33 PM, daze wrote: > > > > > > > > > > > You know the very common "Older posts"/"Show more" link at the bottom

[Rails] "Show more" feature in Rails app

2011-04-19 Thread daze
You know the very common "Older posts"/"Show more" link at the bottom of your Facebook news feed? You know, it functions as a way to show more posts or whatever... it generates more content and allows you to scroll down more. I'm kind of surprised there isn't a nice gem that creates that function

[Rails] Re: How to test the layout of a controller?

2010-12-29 Thread daze
On Dec 28, 8:52 am, Marnen Laibow-Koser wrote: > bingo bob wrote in post #971015: > > > Can I chip in here as a slight aside - after Marnen (or someone else on > > here) "tore a strip off me" after I asked about cucumber without really > > doing the groundwork myself I went off and tried it in my

[Rails] acts_as_list - can you use it "twice" for a model, like one using :position and another using :rank?

2010-12-27 Thread daze
Let's say I have this set up: an article belongs to a section If I go to sections/show, I would see a list of articles belonging to that section. I want to be able to modify the position of each article within that section, so in the model for article, I'd put... acts_as_list :scope => :section

[Rails] Re: How to test the layout of a controller?

2010-12-27 Thread daze
On Dec 27, 12:37 pm, Marnen Laibow-Koser wrote: > > I'll get back to you on how the rspec + cucumber works out.  I've been > > reading the background of cucumber and I'll get them installed/running > > soon hopefully. > [...] Okay... Cucumber is not something you pick up in a day, is it? W

[Rails] Re: How to test the layout of a controller?

2010-12-27 Thread daze
On Dec 26, 10:18 pm, Marnen Laibow-Koser wrote: > > All I see, including in the Rails 3 installation instructions here... > >  https://github.com/aslakhellesoy/cucumber-rails/blob/master/README.rdoc > > ... are instructions involving RSpec only.  :/  Bleh. > > Bleh?  What have you got against RSpe

[Rails] Re: How to test the layout of a controller?

2010-12-26 Thread daze
> >> > Alright. Here's one roadblock. > >> > So what I understand w/BDD is that I should write all these tests, > >> > watch them fail, and then code to make the tests pass. > > >> No. Write *one* test, watch it fail, make it pass, refactor as > >> necessary. Then write the next test. Lather, rinse

[Rails] Re: How to test the layout of a controller?

2010-12-25 Thread daze
On Dec 25, 11:44 pm, Marnen Laibow-Koser wrote: > daze wrote in post #970694: > > > Alright.  Here's one roadblock. > > So what I understand w/BDD is that I should write all these tests, > > watch them fail, and then code to make the tests pass. > > No.  Write

[Rails] Re: How to test the layout of a controller?

2010-12-25 Thread daze
Also, what's becoming REALLY bothersome (I must not full understand or something) is that my tests keep failing, but testing things with rails server works fine! :((( On Dec 25, 11:18 pm, daze wrote: > Alright.  Here's one roadblock. > So what I understand w/BDD is that I should

[Rails] Re: How to test the layout of a controller?

2010-12-25 Thread daze
tever error comes up... I don't understand how people do this. On Dec 25, 10:05 pm, Marnen Laibow-Koser wrote: > daze wrote in post #970685: > [...] > > > > > With regard to the idea about testing behavior alone: > > > That makes a lot of sense.  A lot.  My ques

[Rails] Re: How to test the layout of a controller?

2010-12-25 Thread daze
kay to use Shoulda and factory_girl_rails to handle all my testing? Or is rspec / cucumber absolutely necessary? (I don't feel like changing but I guess I need to know) On Dec 24, 8:37 pm, Marnen Laibow-Koser wrote: > daze wrote in post #970545: > > > I noticed this... &

[Rails] How to test the layout of a controller?

2010-12-24 Thread daze
I noticed this... http://bjhess.com/blog/2008/04/27/five-rails-tips/ But it's outdated a bit. What should I do? I get a DEPRECATION WARNING: response.layout has been deprecated. Use template.layout instead. but after googling around I can't find a definitive solution. It's gotta be simple...

[Rails] Re: Difference between rake test:units and individually running ruby -I test test/unit/something_tes

2010-12-23 Thread daze
Oh whoa okay thanks. I better make some changes now... :/ Can I use Shoulda w/ Rspec, or do I just use one over the other? And I should use this one https://github.com/rspec/rspec-rails, right? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" g

[Rails] Re: Difference between rake test:units and individually running ruby -I test test/unit/something_tes

2010-12-23 Thread daze
On Dec 22, 10:38 pm, Marnen Laibow-Koser wrote: > Let's see your error messages.  But why the heck are you defining an > object like this anyway?  What are you trying to achieve? I'm trying to get a test for acts_as_list working. I've defined a method in test_helper that I use in my unit tests:

[Rails] Difference between rake test:units and individually running ruby -I test test/unit/something_test.rb ?

2010-12-22 Thread daze
Here's my issue: running ruby -I test test/unit/something_test.rb for each of my unit tests works perfectly. However, running rake test:units brings errors in all of them - some object becomes nil for some reason. Why might this be happening? Specifics: the object that is successfully not nil whe

[Rails] Re: Shoulda issue: no more "should have_instance_methods" ?

2010-12-22 Thread daze
Great, thanks! So in summary: 1) Use rspec and shoulda together, as the Thoughtbot team (which created shoulda) is saying they are using rspec 2) To test acts_as_list, test the behavior of it (or test the inclusion of that one module in the appropriate class) I don't know what "that one module i

[Rails] Re: Shoulda issue: no more "should have_instance_methods" ?

2010-12-22 Thread daze
On Dec 22, 9:45 am, Marnen Laibow-Koser wrote: > Well, that whole way of testing is wrongheaded and always was.  You > shouldn't be testing for implementation details like instance methods; > rather, you should be testing for behavior.  (Although I sometimes test > for acts_as_list by making sure

[Rails] Shoulda issue: no more "should have_instance_methods" ?

2010-12-21 Thread daze
I'm using Shoulda. After copying the code here http://joshuaclayton.github.com/code/2009/07/14/should-act-as-list.html into my test_helper file so I can test acts_as_list, I came across issues. For one I realized I had to get rid of the _ between the "should" and "have" in past cases,

[Rails] Re: Using sequences in factory_girl_rails - can you not have a sequence call in different factories?

2010-12-21 Thread daze
Wow, that's great - thanks for the thorough response. I guess I'll use the t.sequence(:title) {|n| "Article#{n}"} style when I can, but otherwise I'll have to keep that :count Thanks again! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk

[Rails] Re: rails 3 routes

2010-12-20 Thread daze
On Dec 20, 9:13 pm, Marnen Laibow-Koser wrote: > Well, you didn't quote the lines you were replying to, and you didn't > state what you were wondering...so I'm left wondering how to read your > mind. :D > > In future, please just ask what you need to ask. > > Best, > -- > Marnen Laibow-Koserhttp:/

[Rails] Re: Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id

2010-12-20 Thread daze
You could do something like <%= form_for :user, :url=>{ blablabla } do |f| %> (...) <% end %> :-) -- 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 unsubscri

[Rails] Shoulda Question: how to test validates_inclusion_of...?

2010-12-20 Thread daze
I'm using thoughtbot's shoulda, and I have this in a model: validates_inclusion_of :year, :in => %w[ 09-10 10-11 ] where :year is of type string. How do I test this in shoulda? Is it with (1) should ensure_inclusion_of or do I have to do (2) should allow_value('09-10').for(:year) and the should

[Rails] Re: rails 3 routes

2010-12-20 Thread daze
I'm wondering about something along these lines too... -- 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 rubyonrails-

[Rails] Re: Having trouble testing :( "superclass mismatch" and can't load "test_helper"

2010-12-20 Thread daze
I figured it out. I simply forgot to put "Admin::" for the articles controller in the admin namespace. Making the controllers start with "class Admin::ArticlesController" resolved the issue. Of course I had to add "Admin:: to any other controllers in the admin namespace that were missing it too.

[Rails] Re: Using sequences in factory_girl_rails - can you not have a sequence call in different factories?

2010-12-20 Thread daze
On Dec 20, 11:01 am, "ppgeng...@prevailhs.com" wrote: > As a note, in the case where you just want a number in a string I > prefer this syntax: > > Factory.define :article do |t| >   t.association       :section >   t.sequence(:title)  {|n| "Article#{n}"} > end > > That way you don't have a seque

[Rails] Re: Using sequences in factory_girl_rails - can you not have a sequence call in different factories?

2010-12-20 Thread daze
On Dec 20, 11:01 am, "ppgeng...@prevailhs.com" wrote: > As a note, in the case where you just want a number in a string I > prefer this syntax: > > Factory.define :article do |t| >   t.association       :section >   t.sequence(:title)  {|n| "Article#{n}"} > end > > That way you don't have a seque

[Rails] Using 'match' in the routes.rb file - how do you get to admin/something? (Rails 3)

2010-12-19 Thread daze
I get the match syntax for rails 3 in the routes.rb file: match 'somewhere' => 'articles#index' This would let me use somewhere_path, which is cool. ... But how do I define a path called 'xyz' to something like admin/ articles/index? Something like... match 'xyz' => 'admin/articles#index' But

[Rails] Re: Using sequences in factory_girl_rails - can you not have a sequence call in different factories?

2010-12-19 Thread daze
Figured it out. Here's the summary: If you have a sequence called :xyz and you are calling it in a factory, YOU NEED TO HAVE BRACKETS around the Factory.next(:xyz) call. In my case: # Factories Factory.define :article do |t| t.association :section # 'belongs to a section' t.title

[Rails] Re: Using sequences in factory_girl_rails - can you not have a sequence call in different factories?

2010-12-19 Thread daze
On Dec 18, 8:20 pm, David Kahn wrote: > You are fine... I had a problem and did not know to put my code there. What?? If I'm fine, then why isn't the :count sequence working for one of the factories? (read first post) -- You received this message because you are subscribed to the Google Groups

[Rails] Re: Where is my db file?

2010-12-18 Thread daze
Well, in the end, I've decided to only have mysql2 for production. For development, I have sqlite3...it's just so "rails server" can work. -- 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.

[Rails] Re: Using sequences in factory_girl_rails - can you not have a sequence call in different factories?

2010-12-18 Thread daze
On Dec 18, 3:25 pm, David Kahn wrote: > Do you have your :count sequence defined in factories/factories.rb? I have a > similar case defined in this file and it works fine: I have everything above defined in one file: test/factories.rb. Is that a problem? The doc (https://github.com/thoughtbot/f

[Rails] Re: Using sequences in factory_girl_rails - can you not have a sequence call in different factories?

2010-12-18 Thread daze
On Dec 18, 4:51 am, Marnen Laibow-Koser wrote: > Why are you using the same sequence in two different factories? I just want a way to number things differently for multiple factories. I originally had a sequence called :article_title, but then I didn't want to make something SO similar later wit

[Rails] Using sequences in factory_girl_rails - can you not have a sequence call in different factories?

2010-12-17 Thread daze
If you check this out - it's in my factories.rb file: -- # Factories Factory.define :article do |t| t.association :section # 'belongs to a section' t.title {|x| "#{x.section.name}Article" + Factory.next(:count) } ... end (...) Factory.define :page do |t| t.titl

[Rails] Re: Having trouble testing :( "superclass mismatch" and can't load "test_helper"

2010-12-15 Thread daze
On Dec 14, 10:58 pm, David Kahn wrote: > Did you look at your ArticlesController for clues? Um...yes. But I didn't see anything odd. > Also, does your app function through the browser but not running the tests? Yes, running rails server works fine. It's the tests that give this error. > Wou

[Rails] Re: Having trouble testing :( "superclass mismatch" and can't load "test_helper"

2010-12-15 Thread daze
On Dec 15, 4:02 am, Colin Law wrote: > If you want to run a test directly like this you have to tell it to > include the test directory so it can find the helpers, so from the > root of your app > ruby -I test test/unit/article_test.rb > > That is a capital i (for Include) > > Colin Okay - I gue

[Rails] Having trouble testing :( "superclass mismatch" and can't load "test_helper"

2010-12-14 Thread daze
I'm having trouble testing my Rails 3 application. Unit testing doesn't work. If I try ruby article_test.rb directly, I get a "no such file to load" error, and if I try rake test:units or ruby unit/ article_test.rb I get this odd "superclass mismatch for class ArticlesController" error! I'm hopi

[Rails] Re: Can't use rails_upgrade plugin on Windows due to missing fork() function

2010-12-08 Thread daze
In the end, I just made a new rails 3 application and did a lot of code transfer (copy/paste). It actually didn't take that long, and things are great with the app in Rails 3. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to th

[Rails] Re: Best way to do testing / load seed data?

2010-12-08 Thread daze
Hey thanks! Just like to say that factory_girl_rails (factory_girl for Rails 3) works excellently. On Dec 6, 5:24 pm, Marnen Laibow-Koser wrote: > daze wrote in post #966672: > > > What is the preferred way to have testing data - fixtures, or > > something like factory_girl (

[Rails] Re: Where is my db file?

2010-12-07 Thread daze
Wait com'on there must be a way to get this mysql2 database to work quickly with rails server And I've never come across the invalid date error you described. Something...maybe??? On Dec 4, 5:40 pm, Alpha Blue wrote: > I don't recommend using mysql2 gem right now.  It still has many > problem

[Rails] Re: Where is my db file?

2010-12-07 Thread daze
Hey thanks! I'll try mysql instead and hope that the server will work better... what a pity that mysql2 isn't so stable. -- 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.c

[Rails] Best way to do testing / load seed data?

2010-12-06 Thread daze
What is the preferred way to have testing data - fixtures, or something like factory_girl (https://github.com/thoughtbot/ factory_girl)? I definitely need something that can handle relationships between things - for example, an article belongs to a section / a section has many articles. Also, how

[Rails] Re: Where is my db file?

2010-12-04 Thread daze
On Dec 4, 5:41 am, gezope wrote: > Try this: gem install thin (or gem install mongrel also good), > then write it to your Gemfile: gem 'thin', > then from command line: 'rails server -thin' > it will be faster then Webrick, the default server. I'm trying this right now, but I can't install thin

[Rails] Re: Where is my db file?

2010-12-04 Thread daze
On Dec 4, 12:57 am, Marnen Laibow-Koser wrote: > It's in MySQL's data directory, the location of which is set in your > MySQL configuration.  SQLiite works fundamentally differently from most > other DBs, in that it puts the whole DB in a single file, which is nice > and portable, but runs into c

[Rails] Re: Where is my db file?

2010-12-03 Thread daze
Oh I just opened my HeidiSQL program and found that all these databases an be found there! All the tables and stuff can be viewed there...how nice. Except...I still don't understand WHERE these dbs arehow does mysql2 handle them? How come they're not found in my application when I look throu

[Rails] Where is my db file?

2010-12-03 Thread daze
I've created a db. Well... running 'rails console' and testing for the existence of users and other resources works, so I'd infer that my db has been created. But it's not in my db directory, or in the root directory... where could it be? I recently tried getting mysql2 to work with my rails 3.0

[Rails] Re: Types of db for environments - same or different?

2010-11-27 Thread daze
> Sorry for any confusion. I was answering the two different questions > the OP seemed to ask: > 1) *can* you set up different DBs for dev/test/production? > Yes you can, and it's very easy. > 2) *should* you do it? > No - in most cases. I think, when you say "should you do it?" you mean "should y

[Rails] Re: Using form_for inside a helper

2010-11-26 Thread daze
Whoa whoa whoa. form_for is for the VIEW. It generates html. Specifcally, it generates tags and etc... On Nov 26, 2:35 pm, RobL wrote: > Hi there, > > I'm having an awful lot of trouble trying to use form_for inside a > helper. Any ideas how to get this to work? > > module MyHelper > >    def

[Rails] Types of db for environments - same or different?

2010-11-26 Thread daze
Should the types of databases for development, testing, and production all be the same? Is it okay to have, for example, sqlite3 for development and testing, and mysql2 for production? Is that doable/common/not too hard to configure? -- You received this message because you are subscribed to th

[Rails] Re: Adding date into entries when I do scaffolding [beginner question]

2010-11-26 Thread daze
well, you should probably check this out: http://api.rubyonrails.org/classes/ActiveRecord/Timestamp.html It says: "Active Record automatically timestamps create and update operations if the table has fields named created_at/created_on or updated_at/updated_on." On Nov 26, 6:54 pm, JK wrote: > S

[Rails] Re: Can't run tests...illegal switch in RUBYOPT: -F (RuntimeError)

2010-11-25 Thread daze
Ryan Bigg. On Nov 24, 7:50 pm, daze wrote: > Does anyone have any insight into why this is happening? > > C:\Users\Family\workspace\myapp>rake test > (in C:/Users/Family/workspace/myapp) > C:/Program Files/Ruby187/bin/ruby.exe: illegal switch in RUBYOPT: -F > (RuntimeErro

[Rails] Can't run tests...illegal switch in RUBYOPT: -F (RuntimeError)

2010-11-24 Thread daze
Does anyone have any insight into why this is happening? C:\Users\Family\workspace\myapp>rake test (in C:/Users/Family/workspace/myapp) C:/Program Files/Ruby187/bin/ruby.exe: illegal switch in RUBYOPT: -F (RuntimeError) C:/Program Files/Ruby187/bin/ruby.exe: illegal switch in RUBYOPT: -F (RuntimeE

[Rails] Re: How to get the :remote => true working to update a part of the page?

2010-11-20 Thread daze
I found a clean answer, and I thought I'd explain the solution. Basically, I was too caught up in the jQuery and etc. - in this case, Prototype works very nicely. With jQuery, I got to fumbling around with a js.erb files. With prototype, in this, case the solution is really clean. http://www.rub

[Rails] How to get the :remote => true working to update a part of the page?

2010-11-20 Thread daze
In Rails 2, I used this kind of code to get a certain part of the page to update. <% if @section.has_sidebar %> <% for page in @section.pages %> <%= link_to_remote "#{page.name}", :update=>'show_page', :url => { :controller=>'page

[Rails] Can't use rails_upgrade plugin on Windows due to missing fork() function

2010-10-22 Thread daze
I'm on Windowsand I can't get anything to work with this plugin: http://github.com/rails/rails_upgrade If I run rake rails:upgrade:check, for example, I get this: rake aborted! fork() function is unimplemented on this machine What a drag! I heard that Ruby's fork() function is unimplemented

[Rails] Can't use rails_upgrade plugin on Windows due to missing fork() function

2010-10-22 Thread daze
I'm on Windowsand I can't get anything to work with this plugin: http://github.com/rails/rails_upgrade If I run rake rails:upgrade:check, for example, I get this: rake aborted! fork() function is unimplemented on this machine What a drag! I heard that Ruby's fork() function is unimplemented

[Rails] Paperclip - helppppp

2010-09-13 Thread daze
I keep seeing this error when I try to upload an image: -- 2 errors prohibited this panel from being saved There were problems with the following fields: Image C:/Users/Family/AppData/Local/Temp/stream,10032,0.png is not recognized by the 'identify' command. Image C:/Users/Family/AppData/Local/Te

[Rails] Cloning this repo is working, but the cloned app isn't

2010-09-07 Thread daze
I cloned the repo http://github.com/dmonopoly/jdmedia with git clone git://github.com/dmonopoly/jdmedia.git and got the app and everything. It's an app in Rails 3, if that matters. Anyway, after "cd jdmedia" I find that the app doesn't work, when I'm sure the app should. for example, typing rails

[Rails] Re: deprecation warning in Rails 3 about Base.named_scope

2010-09-01 Thread daze
okay, thanks...I think I might try that. (I did not have any occurrences of named_scope anywhere in my code, just for clarification) I noticed though that the problem seems to stem from the acts_as_authentic line in my User model. might that mean anything? what exactly is that line anyway --

[Rails] deprecation warning in Rails 3 about Base.named_scope

2010-09-01 Thread daze
I recently upgraded to Rails 3, and this error has come up ubiquitously: DEPRECATION WARNING: Base.named_scope has been deprecated, please use Base.scope instead. Any ideas on how to get rid of it? Or should I just wait for something? There's actually no place in my application where the code "B

[Rails] Re: Testomg: doing def test_blah or test "blah" do

2010-07-12 Thread Daze Z.
Frederick Cheung wrote: > On Jul 12, 2:44�pm, "Daze Z." wrote: >> Thanks, Fred. >> But what's the advantage of not providing a method body? >> > > I think it's just a way of spelling out what tests you want to write > (and be reminded that they

[Rails] Re: Testomg: doing def test_blah or test "blah" do

2010-07-12 Thread Daze Z.
Frederick Cheung wrote: > ...One of the few differences > I'm aware of is that Active Support's test "..." allows you not to > provide a method body (and test runs will then tell you about that) > and it will raise an exception if you try to create two tests with the > same name (whereas when just