search for: venues

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

Did you mean: venue
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 "shou...
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
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_param).and_return(1) Venue.stub!(:new).and_return(@mock_venue) end def do_post post :create, :venue =>...
2009 Apr 29
0
Polymorphic comments table needs associated model
...e Record so I tried has_many_polymorphs, which makes finding the venue through the comments table possible but it doesn''t JOIN the venue table with the comments table. So I resorted to writing a sql statement. #User.rb acts_as_commentable has_many_polymorphs :commentables, :from => [:venues, :artists, :events], :through => :comments # --> WORKS but doesn''t include the venue @user.comments.find :all, :conditions => "`comments`.commentable_type = ''Venue''" # --> Doesn''t work, but it''s my intention @user.comments.find...
2006 Jan 31
2
Relationship navigation issue
...iveRecord::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_state(state_id) find_by_sql(["select e.* from venues v, events e where v.city.state_id=? and e.venue_id = v.id",state_id]) end Error: Unknown table ''v.city'' in where clause How do I handle this case? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermai...
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.fi...
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" =>
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] =
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
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
Apologies for cross posting.... --------------------------------------------------------------------- CART Data Mining'04: First International CART(R) Conferences 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
2011 Jan 03
8
Heroku, needs constant AppController updates?
...ce and other characters such as newline def remove_whitespace(dirty_name) return dirty_name.split('' '').join(" ") end #find names in strings from the net def paramMatcher(modelString, param, cssScrapedString) case modelString when ''Venue'' venues = Venue.all i=0 venues.each do |v| if v.venueName.scan(cssScrapedString)[0] or cssScrapedString.scan(v.venueName)[0] return [v.venueName, v.city_location, v.longitude, v.latitude] end end # of .each end # of case return nil end # of def param Matcher def validate(...
2010 Sep 09
0
UseR groups: NewJersey R - LondonR - BaselR
NewJerseyR Mango Solutions is pleased to announce the inaugural meeting of "NewJerseyR" a networking and social 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
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
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, :nu...
2011 Feb 17
2
[OT] high quality point-to-point audio streaming software?
Hi Guys Sorry, this is off-topic here but relates to current use of CELT and/or Opus in real-world systems. If there's a better forum to ask this question please let me know. I'm wondering 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
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
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 two Venues'' can''t convert nil into Stri...