similar to: Schema help for Studio booking app

Displaying 20 results from an estimated 3000 matches similar to: "Schema help for Studio booking app"

2006 Dec 03
2
How To Create Database Tables With Merb 0.0.7?
Howdy, I just gem unpacked merb and have configured the sample_app to use an sqlite3 database. I see that the Rakefile has a task named "schema", but it points to /dist/schema/schema1.rb", which doesn''t exist. I copied /dist/schema/schema1.rb to /dist/schema/schema.rb then ran "rake schema". What''s the recommended way to create the database tables?
2006 Feb 17
16
Booking system
Hi! I''m planning a booking system in rails, and I have the following issue: There will be room_types. I can implement this with STI in the rooms table, or with a separate table room_types. Each room type will have its special features. For example, a double room can be: -- Posted via http://www.ruby-forum.com/.
2013 Feb 26
4
3 models, joining and nested queries
I have 3 models, class Host ref: string address: string, name: string primary_key=''ref'' has_many :rooms, :class_name=>"Room", :foreign_key=>''host_ref'' Class Room ref :string host_ref: string capacity: integer primary_key=''ref'' has_many
2006 Jul 25
6
Newbie CMS question
Hi guys, I''m new to Rails, as a starting project I''m trying to put together a showcase site for some of my projects (web design, audio production etc...). I''d like to build a basic CMS so I can quickly add updates, and also to practice my Rails skills. I''ve been reading the ''Agile Web Development with Rails'' book which is great and
2006 Jul 28
3
Forms: handle foreign keys (AssociationTypeMismatch)
Hi all I tried and tried and tried, but I still fail in creating a form with proper validation and stuff for foreign keys... So I''d really like to get some help here. I''m creating a booking site for DJ''s, and for every booking one can choose one of different countries: class Booking < ActiveRecord::Base validates_presence_of :country_id
2006 Apr 08
4
Stack level too deep error :(
Hi, If anyone has some time to help with my problem that would be really good :) I am getting a "stack level too deep" error when saving an object to the database when it is has a has_one relationship to another object I wish to save and associate after it. If goes a little like this class Quote < ActiveRecord::Base belongs_to :eventdetail has_many :bookings # An
2006 Feb 08
6
can''t get date_select to work
Hi, I render a couple of date_select fields, the HTML looks fine, I can see the values submitted back to the server, but AR doesn''t pick them up from the hash in Booking.new(params[''booking'']). I''ve got a ''booking'' object with parameters product, startdate and enddate. HTML snippets: <select
2011 Sep 08
0
[LLVMdev] Euro-LLVM 2011 - Registration closed
Dear all, Thanks for your interest, we got quickly overbooked but managed to get most of you on board. I'll send a personal email to all registered. We are now closing registration, but you can already register interest for the next Euro-LLVM in 2012, as some are already doing. The schedule is now complete and online at: http://llvm.org/devmtg/2011-09-16/ I want to use this opportunity to
2005 May 03
2
How to put a form for one controller in another controlers view
Hello, If anyone could help me out with this problem I''d appreciate it... I''m making a database of event bookings, I have an events table and a clients table. I''d like to include a form to create a new client in the form for creating a new event. This would update the parent form with the new client_id using AJAX methods (see previous e-mail) so you''d
2006 Feb 20
9
a complex availability problem
Ok, this is a hard one and I just thought I''d see if people on the list had any suggestions on how they would approach this, I''ve not started to implement the rails to handle this yet as I''m still at the paper planning phase. I''m building an app that has to handle availability for travel packages. The complexity comes in that a person can choose a start
2007 Apr 26
5
Is There an Alternative to MEMDISK ?
This isn't an esp urgent issue, but I'd like to use a certain RAM diagnostic (Doc Mem) which I've already posted a note about a couple of months ago. Simply won't work booting the floppy disk image via MEMDISK. In the interim, I've tried to resolve this by changing things on my side. I'm pretty sure it's a XMS incompatibility, as it fails differently depending on
2006 Apr 30
0
populating model attribute from one of many lists
I have a model named Project which contains a name attribute, and I have a second model named Booking which has, among other things, a date and a Project. (has_many :bookings, belongs_to :project). When a user creates a new Booking, they have the option of using an existing Project or creating a new Project. As an added complexity, when choosing from existing Projects, they can either choose from
2006 Jul 09
17
Has many / belongs to error with mysql
Hi, I''ve got stuck with a problem on my rails app - I''ve created a database for quotes and bookings, with a futher table "eventdetails" (details of a quote or booking) linked one-one for both tables using a polymorphic assciation. This all works, but I am now trying to link a quote to a number of bookings with a has_many and belongs_to (the foreign key is in the
2012 Nov 30
3
Rails Course Booking System
Hi all, i have just finished reading Beginning Rails 3 and have done as many tutorials on the web I can find. So I have decided for my first real project I would like to create a system where an admin can created courses controlled from some sort of back-end. Users could then register an account book and pay for course utilizing maybe some sort of calender system. Am I starting out too big for
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
2010 May 02
0
[LLVMdev] Compiling LLVM 2.7 with Visual Studio 2010.
Hey, So I tried to fix these errors, and have everything compiling now... not too difficult, just annoying. error C2248: 'llvm::EquivalenceClasses< > > ElemTy>::ECValue::ECValue' : cannot access private member declared in class > 'llvm::EquivalenceClasses<ElemTy>::ECValue' C:\Program Files > (x86)\Microsoft Visual Studio 10.0\VC\include\xmemory 208
2007 Jun 07
0
How to use Postgres schemas in Rails app to separate data
Rails/Postgres Gurus, Question: Is it possible to use Postgres schemas within a Rails app to separate tables and data between two different apps? Problem Set: I am thinking of combining two apps. I want to share some data (certain tables) between them, but I want the migrations and other activities to be separated. I don''t want any table changes in one app to impact the other.
2010 May 02
2
[LLVMdev] Compiling LLVM 2.7 with Visual Studio 2010.
Sorry for just talking to myself here, just trying to keep people in the loop on my findings. The problem seems to be a much larger issue with the Visual Studio 2010 C++ Compiler and not really related to clang/llvm. The following snippet of code does *NOT *compile in 2010.. #include <vector> int main(int argc, char* argv[]) { std::pair<int, void*> mypair(0, NULL); return 0; }
2011 Mar 06
2
Monte carlo help
Hello, I am currently doing my project and I need some help. I am trying to schedule tutors for a study room where students come in and out for helps. My goal is to schedule the tutors to maximally accomodate to the flow of students that need help with math so that each tutor is given an appropriate(also consecutive) hours of schedule. I am using monte carlo simulation for this, however I have
2006 Aug 16
0
sort_link_helper , sorting on date
I am using this helper to sort my table colums, no problem sorting on string but how can I sort a date colum ( in my DB, ) user_helper.rb ---------------------- def sort_link_helper(text, param) key = param key += "_reverse" if @params[:sort] == param options = { :url => {:action => ''list'', :params => @params.merge({:sort => key, :page =>