search for: venu

Displaying 20 results from an estimated 591 matches for "venu".

Did you mean: menu
2007 May 20
9
How to test for exceptions
Hi folks, I''m in the process of converting a Test::Unit functional test to RSpec, but I''ve run into a slight problem. I tried looking through the documentation but I still don''t know what I missed. Thanks in advance, Blake describe VenuesController, "on update" do before(:each) do @venue = mock("venue") @venue.stub!(:new_record?).and_return(false) @venue.stub!(:to_param).and_return(''1'') controller.class.send(:define_method, :rescue_action) { |e| raise e } end it "sh...
2005 May 13
17
modeling...
I''ve tried tackling this many ways on my own and can''t find a good solution: Breaking it down to something simplier... Venue has one address Person has one address Address belongs to state Assuming I don''t want to do tables for venue_addresses and person_addresses. What is the best way to model this using rails... big thing here is i want to be able to reuse a partial for creating/modeling an address. I t...
2007 Jan 30
5
errors while testing resource controller using rpec
I am testing a resource called venue in this piece of code (generated using script/rspec_resource) ==================== context "Requesting /venues using POST" do controller_name :venues setup do @mock_venue = mock(''Venue'') @mock_venue.stub!(:save).and_return(true) @mock_venue.stub!(:to_p...
2009 Apr 29
0
Polymorphic comments table needs associated model
Howdy, I''ve been banging my head on this problem for a bit. I''m using the acts_as_commentable plugin which works great. The scenario, I''m on the user''s dashboard and want to display comments with commentable_type = Venue. No problem. But, if I want to display the name of that Venue with the comment... big nasty. The polymorphic key is a composite key and rails doesn''t have a way to recognize this. I really want to keep with Active Record so I tried has_many_polymorphs, which makes finding the venue th...
2006 Jan 31
2
Relationship navigation issue
class Event < ActiveRecord::Base belongs_to :venue belongs_to :category end class Venue < ActiveRecord::Base belongs_to :city end class City < ActiveRecord::Base belongs_to :state end I want to retrieve all event records belonging to a state. Coming from hibernate background I tried something like this: def self.list_for_a_stat...
2006 Apr 06
2
using select() to relate tables
I''m sorry to be asking trivial questions, but I''m new to RoR and am hooked :), so I''m very impatient to get things up and running. given two related tables, "pcs" and "venues" (venues have many PC''s and each PC belongs to one venue only) I can use a select() to present venue names in the "new PC" form along with other PC details to be registered. I''ve done this by adding <%= select('''', '''', venue....
2006 May 18
3
populating array of text_fields from an array of model objects
I have in my view the following: <% 0.upto(@num_performances) do |idx| -%> <%= text_field ''performance'', ''city'', :index => idx, %> <%= text_field ''performance'', ''venue'', :index => idx, %> <% end -%> and in my controller I have: @performance = [Performance.new("city" => "Toronto", "venue" => "Opera House"), Performance.new("city" => "Toronto", "ve...
2006 Jul 07
4
need help with some ugly code - is there a better way?
Hi, In my user_controller.rb, I have the following method, which is supposed to send the user to their profile, dependng on what "role" they are (the roles correspond to the other controllers: venue, band, fan): def login if request.post? if session[:user_id] = User.authenticate(params[:user][:login], params[:user][:password]) flash[:message] = "Login successful" if session[:user_id].role == ''Fan'' redirect_to :co...
2008 Sep 04
3
Can you use observe_field to watch a select list and then update the contents of a text field?
Before I waste more time trying to figure that out, I was wondering if it''s even possible? The Rails Way says that observe_field by default will trigger changes in text fields and text areas, and on clicks for radio buttons and check boxes. So perhaps I''m using the wrong tool here? Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you
2009 Feb 21
2
Foreign-key confusion
Hi, I am a bit confused about managing the relationship between two of my tables: I have developed a script using scRUBYt that scrapes data from a website and dumps the following four fields into my Shows table: class CreateShows create table :shows do |t| t.string :date t.string :venue t.string :info t.string :comics The second table I created is called Theatres: class CreateTheatres create table :theatres do |t| t.string :name t.string :address t.string :website_url t.string :location The :venue field in the Shows table corresponds to the :name field in the...
2008 Jan 02
6
problem when editing record in polymorphic relation
I have the following three models created applying the polymorphic concept ========================================================================== class SoftwareCi < ActiveRecord::Base has_one :ci, :as => :content end class HardwareCi < ActiveRecord::Base has_one :ci, :as => :content end class Ci < ActiveRecord::Base belongs_to :content, :polymorphic => true end The
2003 Jul 09
2
CFP: CART Data Mining Conference 2004
...nferences Focusing on the Data Mining technology of Leo Breiman, Jerome Friedman, Richard Olshen, Charles Stone (CART, MARS(R), TreeNet(tm), PRIM(tm)...) First Call For submissions --------------------------------------------------------------------- US Venue: San Francisco, March 23-25, 2004 EU Venue: Madrid, May 25-26, 2004 Conference home page: http://www.cartdatamining.com ---------------------------------------------------------- --- --- --- CALL FOR...
2011 Jan 03
8
Heroku, needs constant AppController updates?
...nd if time != 0 @savedEvent.doorsOpen = Chronic.parse(time[i].content) end if price != 0 @savedEvent.price = price[i].content end if description !=0 @savedEvent.description = remove_whitespace(description[i].content) end if location != 0 savedVenueName = paramMatcher(''Venue'',''venueName'', remove_whitespace(location[i].content)) if savedVenueName @savedEvent.venue = savedVenueName[0] @savedEvent.city_location = savedVenueName[1] @savedEvent.longitude = savedVenueName[2]...
2010 Sep 09
0
UseR groups: NewJersey R - LondonR - BaselR
...ocial event for all local and regional R users. Thank you to those of you already registered to attend the first NewJerseyR meeting on Thursday 16th September and to those of you who have already joined our mailing list for future NewJerseyR events. Please note that we are announcing a CHANGE OF VENUE for the meeting next week. The new venue is adjacent to the originally advertised venue so we are confident that this late change should cause no inconvenience. Date: Thursday 16th September 2010 Venue: Kona Grill, 511 Route One South, Iselin, New Jersey 08830 Time:...
2013 Apr 30
5
CentOS Dojo at Phoenix, AZ on the 10th May 2013
Hi, The second CentOS user interaction Dojo is taking place at Phoenix, AZ, USA on the 10th May 2013. And once again, we have a great line up of speakers covering a broad spectrum of technologies that people running CentOS usualy care about most. For details on the speakers, the topics and the venue : http://wiki.centos.org/Events/Dojo/Phoenix2013 The early bird ticket sales end on the 30th Apr, so if you can make it - be sure to register early ( You can register now at http://centosdojophoenix.eventbrite.co.uk/ ) The plan is to start at 9:00 with the sessions starting at 9:30, and a nice...
2005 Dec 08
0
SF Beer & Dim Sum SIG (12/28) - !change of venue!
It turns out that the Long Island Chinese Restaurant has (a) moved and (b) changed its name (to "Wild Pepper"). So, please visit the SIG''s page (http://cfcl/rdm/beer_and_pizza) for new directions! -r -- email: rdm-go8te9J4rpw@public.gmane.org; phone: +1 650-873-7841 http://www.cfcl.com - Canta Forda Computer Laboratory http://www.cfcl.com/Meta - The FreeBSD Browser,
2008 Dec 05
0
Bug in schema.rb generation during db:migrate
...this issue is the same as Ticket #11198 but I can''t figure out how to add this to that defect. How do I figure out the status of defect 11198? It says [PATCH] What does that mean? Is this supposed to be fixed? If so, how do I reopen the defect? Thanks in advance. TW Scannell class CreateVenues < ActiveRecord::Migration def self.up create_table(:venues, :id => false) do |t| t.string :id, :limit => 36, :null => false t.string :name, :null => false t.string :address, :null => false t.string :city, :null => false t.string :state, :...
2011 Feb 17
2
[OT] high quality point-to-point audio streaming software?
...g if anyone can point me in the direction of software I can use right now that will give me high-quality point-to-point live audio streaming accross the internet. Kind of like Skype, but designed for stereo music instead of just voice. The application is streaming a live music concert from one venue to another venue on another continent. Correct me if I'm wrong, but I've read that you can do things like this with icecast but my understanding is you need to configure a server so it's more suited to permenatnt broadcast than for ad-hoc once-off point-to-point audio streaming ses...
2017 Sep 04
7
Reaching definitions on Machine IR post register allocation
Hi, Just to clarify I am looking for a whole machine function analysis not just something restricted to within a machine basic block. Thanks. Regards, Venu. From: Raghavan, Venugopal Sent: Saturday, September 02, 2017 12:56 PM To: llvm-dev at lists.llvm.org Subject: Reaching definitions on Machine IR post register allocation Hi, Given a definition of a register by a machine instruction in the Machine IR post register allocation, I would like to com...
2007 Feb 13
16
Error against latest trunk while testing via spec for model
Hi I just did an update to lates trunk ================= context "Given a generated venue_spec.rb with fixtures loaded" do fixtures :venues specify "fixtures should load two Venues" do Venue.should have(2).records end end ================== gives me ========== 1) TypeError in ''Given a generated venue_spec.rb with fixtures loaded fixtures should load...