similar to: Tests not picking up table name changes.

Displaying 20 results from an estimated 8000 matches similar to: "Tests not picking up table name changes."

2005 Dec 23
3
Intergrating delicious?
Whats the best way of intergrating del.icio.us into a RoR app? -- Posted via http://www.ruby-forum.com/.
2006 Mar 31
5
Changing Table Schema and Models
If I make a change to a database table, how do I recreate the model to reflect the change? -- Posted via http://www.ruby-forum.com/.
2006 Feb 21
4
Models, Helpers, Modules, etc.
Hello, I am learning rails and ruby and I have some questions about how should I go about doing certain things. [1]Many of my models have some functionality which is common, and instead of duplicating it across models, I want to store it in a single file, and then import the file into the models. Should I do this using modules, and then store them in the `lib'' directory? What is the
2006 Mar 15
10
Scaffold with Foreign Key
I have two tables: ------------------------------ drop table if exists users; create table users ( id int not null auto_increment, username varchar(100) not null, password varchar(20) not null, firstname varchar(20) not null, lastname varchar(20) not null, primary key (id) ) TYPE = InnoDB; ------------------------------ drop table
2006 Mar 25
3
Rails Plugins: Why to register your own functionality with send()?
Hi there, I have seen in the file column plugin ( http://www.kanthak.net/opensource/file_column/) from Sebastian Kanthak or David''s acts_as_taggable plugin that to register my functionality I need to do something like this: ApplicationHelper.send(:include, InPlaceEditAssociations) I am wondering why not: (a) module ApplicationHelper include InPlaceEditAssociatons end or: (b)
2006 Mar 03
2
voice recording with ruby/ rails
hi all whats there in store of ruby/rails to support voice recording feature ? thanks rohit --------------------------------- Yahoo! Mail Use Photomail to share photos without annoying attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060303/44230a4b/attachment.html
2006 Jan 31
2
NameError/Unitialized Constant With PayPal Gem
I am trying to use the PayPal gem and having a little trouble. I installed the gem w/o any trouble: paypal (1.0.1) Paypal IPN integration library for rails and other web applications When I try to use it in my controller, as follows: def paypal_ipn notify = Paypal::Notification.new(request.raw_post) ... end I get a NameError: uninitialized constant Paypal This error occured
2006 Mar 09
2
turn off auto increment
Hello, I have an old table that handles sessions. the primary key is a field called session_id and is the actual session id like "8df838303ufdfu838" however when i do the following in the model: set_primary_key "session_id" and the following in the controller: @session_hash = { "session_id" => @session.session_id, "session_user_id" =>
2006 Mar 12
2
Strange error: undefined method `rewrite''
Hi, when I generate a new rails project with a simple scaffolded controller, I get a strange error message, whenever it tries to call the url_for method, for example: ,---- | undefined method `rewrite'' for #<Url:0xb7675e64> | | Extracted source (around line #7): | | 4: </p> | 5: <% end %> | 6: | 7: <%= link_to ''Edit'', :action =>
2006 Mar 28
5
combining two models in one controller/view "set"
I''m going to take another stab at this question (my first one received no replies): I have two models: Author has_many: books Book has_one: author I have two tables: authors id ... books id author_id ... I let the scaffolding fly and it created the CRUD goodness for each model, as expected. However, I want to have only one view/controller "set" for both models; when I
2008 Oct 20
5
RSpec-Rails bug with to_xml?
Hello, everyone. I''ve been lurking here for a while, but this is my first post. I think I''ve run into a RSpec bug in a Rails project I''m working on. I was working on a few REST controllers, and started getting failures on a specific spec that verified whether a certain action returned XML output. I spent quite a lot of time checking my code to see if it was something I
2006 Apr 08
2
ToDo list examples?
Hi guys, im guessing if there?s around a ToDo list example with categories using actual code(1.x) cause every example i found its about 0.x and its hard battle against deprecated code, that way i can see the basic of rails and tables relatios. Regards ;) -- Posted via http://www.ruby-forum.com/.
2006 Feb 12
2
ActiveRecord Many-To-Many relationship question
Hello, I''ve got two models: Photo and Tag, which have an M to N relationship. When I run Photo.find and specify "tag = foo" as a condition, I get a list of all photos associated with tag foo. So far so good. But each the tags member of each of the photo objects returned by Photo.findcontains only the tag "foo" even if the photo in question also has the tags
2006 Feb 25
3
Is there any projects that implement the social bookmarking?
scuttle is written in php,delirious is written in perl,rails has tealeaf which has not published any files until now,is there any other rails social bookmarking with ajax characteriscs? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060225/0e082cd5/attachment.html
2006 Feb 26
3
Rails Naming Conventions
DB field names: If I have a table that references 2 or more separate users from my users table, is there a recommended naming convention for this situation? In my case, I have 3 users associated with a record in my projects table: requester_user_id created_by updated_by I could name one of them "user_id", and then projects.user would work I guess, but wouldn''t work
2006 Jun 24
5
Rake vs Ruby for running tests (error discrepency)
I''m having (to me) a strange problem with errors when running my tests with rake as opposed to using ruby. If I do rake test:units I get this error for several tests, but not all: 13) Error: test_player_has_game_statistics_for_season(PlayerSeasonTest): ActiveRecord::StatementInvalid: Mysql::Error: Duplicate entry ''22'' for key 1: INSERT INTO positions (`name`, `id`,
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
2006 Apr 28
2
Accessing fixtures from unit tests
I have set up some fixtures in test/fixtures/users.xml: # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html admin: id: 1 username: admin password: admin pbarry: id: 2 username: pbarry I have a unit test for my user model: require File.dirname(__FILE__) + ''/../test_helper'' class UserTest < Test::Unit::TestCase fixtures :users def
2006 Jan 10
2
Default unit tests failing?
I''ve got a strange issue. My default unit tests are failing for two models. I haven''t changed _anything_ in the test. Here''s an example: Output: 1) Error: test_truth(ShippingCostTypeTest): NoMethodError: You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.find
2016 Jan 19
2
Monitor Dummy Device
Am 2016-01-19 02:01, schrieb Mark LaPierre: > On 01/17/16 11:42, Joey wrote: >> Hello List, >> >> i want to use a Dual-Screen Solution without connected a second >> Monitor. >> >> Its a solution available, that a physical monitor/Device is simulated? >> I >> want to use it on KDE. >> >> Thank you. >> >> Joey >