search for: clarkwar

Displaying 20 results from an estimated 36 matches for "clarkwar".

Did you mean: clarkware
2006 Aug 03
9
Rails Cheatsheets!!!
Hey if you know any rails cheatsheet link add it inot the follwing list, lets make a long list on Rails cheatsheet.... ;) 1) 2) 3) 4) . . . -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060103/a6eea2ac/attachment-0001.html
2006 Mar 01
5
rails models, logging and testing
Hello, I am using rails 1.0 and I have following questions. Please help me. [1] How can I do logging in the rails models? I checked the wiki but didn''t find anything which I explained how to do logging in models. [2] Say I have a certain model, when I declare a function in the model, and try to use that function from a view or a unit test, I get an error. For views the error occurs
2006 Jul 25
2
routing tests
Hi there, is there a script/console like program where I can test my routing? IIRC there is something like that in the agile web dev. with rails book. Patrick -- Posted via http://www.ruby-forum.com/.
2006 Jan 17
2
Rails Unit test Problem
Hi all, I have a problem with unit test database data reload. I have several test_xxx function in my ruby unit test file I would like to know why xxxx.yml containing test data are load only 1 time for all the test while specification say it done for before each test method. Thus my test_xxx are dependant of previous test This is a mistake, because the specs say the test data are reload
2007 Jun 27
5
How to make attachment_fu generate RESTFUL URL
hi folks: I follow this article:http://clarkware.com/cgi/blosxom/2007/02/24 all goes well except the public_filename ,it return something like "photos/0000/0001/test.jpg" ,not the expected RESTFUL URL LIKE ''photos/1/test.jpg'',any suggestion? My Env is Rails 1.2.3 on Ruby 1.8.6 with attachment_fu from http ://svn.techn...
2006 Mar 23
7
Fixtures just Do Not Work for Me
Hello, I have been struggling to get fixtures to work here with no success. They just Do Not Work For Me (tm). I have created a model named Headline with the `generate'' script and modified the test/fixtumes/headlines.yml as follows ---------- gita: id: 1 author: raulseixas title: gita happened_at: 2005-01-01 00:00:00 description: gita This is the CD reissue of
2005 Dec 15
4
Order of tests matters???
I have a problem with tests. I always thought that the order of tests doesn''t matter because the fixtures are reloaded before every test method. However, I''ve just discovered that this isn''t true. This is a quote from the "Guide to testing the rails" howto: "... if we had another test method, we wouldn’t have 10 users on the 2nd test because they would
2007 Jul 11
7
Best way to upload an image and make a thumbnail
Hi, which is the best way to upload an image, keep that and also make a thumbnail? The images should not be stored in the database, but as normal image files in a specific directory. I think that for the thumbnail i should use rmagick, but for the upload ? (something which work with and without javascript, in every browser) Thanks :) -- Posted via http://www.ruby-forum.com/.
2006 Aug 17
2
How to trigger an action from script/console
Hi, I have build a conversion script from an old database to a new one (which is designed to work with ROR), and every action converts one table and takes over 5 minutes... When I trigger the actions from my browser, I finally end up with a "Failed to start properly"... So, simple question: How can I do this from the console, that is to say, trigger one of my controller''s
2006 Jun 24
1
@version_control_book not available while testing - AWD book 1 page 148
In the page 148 of the AWD book it''s mentioned that the while testing @products and @version_control_book are automatically made available. That''s not the case with me. In my test environment I don''t get those two variables. I was wondering if anything has changed in Rails 1.1 because in the new edition of the book (AWD - edition 2) there is no mention of such
2006 Apr 13
1
[ADV] Pragmatic Studio: Advanced Rails
Hi Folks, We''re excited to announce that Dave Thomas and I will be teaching an Advanced Rails Studio: a hands-on, master-level workshop where you''ll learn the cutting-edge techniques used by the experts to build killer Rails apps with confidence and efficiency. We?re still finalizing exactly when and where we?ll hold this Studio. But if you?re seriously interested in
2006 Feb 28
1
Rails page on Apple homepage
Apple Computer has put up a nice page on the Developer Connection entitled "Using Ruby on Rails for Web development with Mac OS X." http://developer.apple.com/tools/rubyonrails.html I guessed they have noticed David is helping the sales figures for MacBook Pros and Powerbooks. :) -- Posted via http://www.ruby-forum.com/.
2007 Mar 12
1
rspec on rails instantiated fixtures OFF by default ?
Hi there, Why are the instantiated fixtures turned off by default in the rspec on rails plugin? This was not the case in older versions. After upgrading (and much head scratching) I had to turn on the instantiated_fixtures in spec_helper thusly ... self.use_instantiated_fixtures = true Regards, Keith
2007 Dec 02
0
attachment_fu doesn't generate thumbnails on windows
Hi, I''m having trouble with attachment_fu on windows not generating any thumbnails on the fly. I started out trying to incorporate this into my app without success then tried implementing Mike Clarke''s tutorial (http://www.clarkware.com/cgi/blosxom/2007/02/24) and got the same problem. I have resolved some gotchas I found in the "attachment_fu on Windows" thread http://www.ruby-forum.com/topic/99870?reply_to=553924 The result is I can upload the original image ok but still no thumbnails are generated and the only...
2008 Sep 15
1
[attachment_fu] Allways triggering after_attachment_saved callback
Hi, I use attachment_fu in one of my apps and recently I''ve realized that udpates are taking too much time. After some debugging I''ve found that attachment_fu is calling after_attachment_saved callback no mather if attachemnt has changed or not. For example this code: after_attachment_saved do |photo| logger.info "after_attachment_saved" end # in console - always
2006 May 04
3
@products["car"] is not being recognized in my tests!! help
@products["car"] is not being recognized in my tests: class ProductsControllerTest < Test::Unit::TestCase fixtures :products def test_view_product post :view_product, :id=>@products["car"].id assert_template "view_product" ... end end products.yml : car: id:1 name:test Does anyone have any idea why its not working? Im having to do
2005 Oct 28
2
Accessing fixture
I have a very simple problem. I can''t seem to access a the fixture by name I have a sites.yml with: simple_site: id: 1 name: demo description: A demo site created_on: 2005-10-25 00:00:00 updated_on: 2005-10-25 00:00:00 And I have a test class as: require File.dirname(__FILE__) + ''/../test_helper'' class SiteTest < Test::Unit::TestCase fixtures
2006 Mar 27
1
Tests not tiding up after themselves?
Hello, My tests are messing with one another because it seems that they aren''t cleaning the database after execution. I have the tables headlines and articles. And the articles table has a foreign key to the headlines table. My schema structure is created by this script ---- drop table if exists changes; drop table if exists articles; drop table if exists headlines; create table
2006 Feb 01
3
Test data life cycle confusion
Hi, It states on page 140 of Agile Web Development with Rails: Here?s the bottom line: even if a test method updates the test database, the database is put back to its default state before the next test method is run. This is important because we don?t want tests to become dependent on the results of previous tests. Well, I''ve been running into a brick wall with some functional tests
2005 Oct 27
2
Fixtures are not loading into instance variables. Why not?
Hi, I have a fixture in a unit test and I see that the fixture is loaded correctly into the database table, but no instance variables are created. So now I''m stuck. More background: this is my first RoR project and I have just installed the SaltedLoginGenerator and generated its output. Running the unit tests gives an error, so I cut it down to just 1 test: