similar to: Cucumber and general Ruby question

Displaying 20 results from an estimated 200 matches similar to: "Cucumber and general Ruby question"

2005 Jul 19
1
Nested drag and drop rendering issue with ie
First and foremost, excellent library - excellent work. Thank you. Now, here''s what I''m doing: <div id="wrapper"> <fieldset id="page_1"> <legend>Page</legend> <fieldset id="group_1"> Group </fieldset> <fieldset id="group_2"> Group </fieldset>
2009 Dec 24
12
no such file to load -- ferret
Hi there, I''m just trying to deploy my app to my vhost, and i''m getting an error on the phusion passenger page: no such file to load -- ferret now everything worked fine in development. DO i need to reinstall the plugin and gem again? if so - would these be in domain.com/public? or should it be installed at domain.com? ANy advice would be great! THank you. -- You received
2005 Nov 10
1
OggPCM version / header finalization
Hi John, all, I still have at least 3 issues: 1) What are we trying to achieve with the "source-ID"? 8 [uint] Source ID (Unique amongst all OggPCM streams in the physical stream) Are we trying to separate the different channels that may be interleaved with each other inside the flat multi-channel sample stream? Interpretation 1: ----------------- So, would each channel be in a
2007 Oct 05
7
Easy AR association stubbing
I''ve added a method to the mock class that makes it pretty easy to stub associations in rails. I''ve been using it for awhile and it seems to cut down on a lot of setup code for the controller and model specs that use associations. #before @person = mock_model(Person) posts = mock(''post_proxy'') posts.stub!(:build).and_return(mock_model(Post, :save => true))
2008 Apr 07
5
Associations errors
undefined method `each'' for 0:Fixnum at line @school = School.find_by_title(params[:school_id].gsub(''-'', " ")) for team in @school.teams ........ end @school does exist cause i tried with .find(:first) and it gave the same error. Also I''m getting undefined method `reject'' for #<Game:0x24ca1c4> From @home.game_ids = @game
2005 Jul 20
3
examples of drag n drop
Sorry if this sounds cynical, ( i do love script.aculo.us scripts ) , but I am wondering if people know of some good real world examples of uses of drag n drop and sortable lists. such a cute script will likely be *ab*used as much as it is used. obviously the point here is to use script.aculo.us to improve the user interface rather than just have some k00l eFX. e.g. the drag n drop instantly
2003 Mar 02
1
Final Ogg 1.0 submission to IETF
Hi all, just letting you know that I am about to submit the final version of the Ogg 1.0 file format Internet-Draft to the IETF. It is due by today (March 3, Monday - Internet Draft final submission cut-off at 09:00 ET) for the next IETF meeting and I expect they will promote it to RFC status at the meeting. Please send any last-minute changes to me. Cheers, Silvia. <p><p>
2003 Mar 02
1
Final Ogg 1.0 submission to IETF
Hi all, just letting you know that I am about to submit the final version of the Ogg 1.0 file format Internet-Draft to the IETF. It is due by today (March 3, Monday - Internet Draft final submission cut-off at 09:00 ET) for the next IETF meeting and I expect they will promote it to RFC status at the meeting. Please send any last-minute changes to me. Cheers, Silvia. <p><p>
2005 Dec 28
1
making has_and_belongs_to_many save more elegant
When a user creates a post I also want to save all the tags associated with it. I do that in the post_controller like this presently: def save @post = Post.new(@params[:post]) @tags = Tag.new(@params[:tags]) @post.user_id = session[:id] if @post.save @tags.title.split('','').each do |tag| present_tag = Tag.find_by_title(tag.strip) present_tag =
2009 May 12
4
has_many :through and scopes: how to mutate the set of associated objects?
I have a model layer containing Movie, Person, Role, and RoleType, making it possible to express facts such as "Clint Easterbunny is director of the movie Gran Milano". The relevant model and associations look like this class Movie < ActiveRecord::Base has_many :roles, :include => :role_type, :dependent => :destroy has_many :participants, :through => :roles, :source
2003 Feb 13
2
Changes to Ogg format IETF I-D
Howdy, yeah, I've finally collected all your feedback on my I-D on the Ogg encapsulation format, many thanks to all of you! Below, I've listed the changes that I have made to the previous version and the attachment contains the complete new I-D. If there are any more change requests, please send me wording proposals as it's easier to include. :) Monty, in case you are doing any
2003 Feb 13
2
Changes to Ogg format IETF I-D
Howdy, yeah, I've finally collected all your feedback on my I-D on the Ogg encapsulation format, many thanks to all of you! Below, I've listed the changes that I have made to the previous version and the attachment contains the complete new I-D. If there are any more change requests, please send me wording proposals as it's easier to include. :) Monty, in case you are doing any
2007 Jul 24
6
Mocking Access Control
I''m trying to jump on the TDD/BDD bandwagon, but am having trouble understanding how i should mock my user. The user has a habtm relationship to a roles model (acl_system2 plugin), but I''m not sure how to tell rspec about a model. My code: describe UsersController do integrate_views before(:each) do @user = mock_model(User)
2006 May 11
0
creating variables on the fly with a loop
I''m trying to clean up some of my sloppy code, and one of the things I''m working on is trying to make this huge group of variables a bit more elegant. My variables look like this: @business_core_courses = Category.find_by_title(''business_core_courses'').courses @written_communication = Category.find_by_title(''written_communication'').courses
2006 Jun 29
6
adding a before_filter to static content
Hi, I have a Rails site that uses a before_filter in the application controller that does some authentication and authorization work. I also have a bunch of HTML in folders in the application''s public directory. Before a user can view anything in the public directory, I''d like to authenticate them. How could I do that? I''m using mongrel, if it matters. Thanks, Joe
2009 Jan 31
0
save after delete returns true but actually fails
Hi, I''m using Rails 2.2.2. I noticed that creating two references to the same database ActiveRecord object, then deleting with one of them, followed by saving with the other, true is returned, but no new record is actually saved. e.g.: doc=Document.new(:title => "sam''s speciality") doc.save doc.id # ==> 23 doc2=Document.find_by_title("sam''s
2006 Mar 16
6
Newbie question - Rails without database
Hello to all, I am entirely new to Ruby and also to Ruby on Rails. As far as I understand, Rails builds its model according to the a specified table structuree in in the database. However, most of my applications, are for the most part (except some backend CRUD stuff) not database centric. They do a lot of calculation for the user. So, how can I create a model, when no database is needed,
2010 Aug 20
6
Suggested books for the complete Noveice
Hi, I am new in this group, if I want to learn rubyonrails what should I do first. I am very much interested to learn rails as I saw a video and make simple blog following that and then I started feeling that I should learn this language. About me, I have completed the basic java and I understand OOP concept and I can understand and write php codes. If I get some suggestion from you it would
2006 Mar 28
1
simple output string
Hi! I am new to Rails and wanted to know how I can print an easy string-line. I wanted to generate a dynamic title for my blog articles made with "typo": The first part of the html-title stays the same: <title>softrockcookie</title> if it is not the mainpage ("softrockcookie") it shall add the page_title, so: <title>softrockcookie <%= page_title
2007 Aug 26
4
howto regressions on environment.rb in Rails projects
How would one write a spec on environment.rb in a rails app? I was requiring a gem in environment.rb, but received a "MissingSourceError". Generally, ruby raises a LoadError when it can''t find a gem, but rails overrides this to raise a MissingSourceError (since rails is expecting a required file to be in lib/...). How would I write a spec to override this behavior,