search for: tuinstoel

Displaying 11 results from an estimated 11 matches for "tuinstoel".

2006 Apr 02
5
foreign keys and migrations
Hi: I''m looking to get a point clarified which i''m sure is obvious to everyone else but I haven''t been able to find the answer to. i''ve tried searching through the forums and the api pages and haven''t found anything. Is there a way with migrations to set up foregin key relationships? (beyond putting in the relevant foregin_id attributes) Is
2006 May 24
4
pdf on the fly
In my rails app I need to create pdf reports on the fly. I have installed railspdf, wich is working fine. But, how can I create tables and paragraphs and stuff? Can I mimic an .rhtml file (using <% for ...%> etc? Or is it wise to use Ruby::PDF directly? Is there anyone out there with experience in this, and who is willing to share his findings? Thx -- Posted via
2006 Mar 16
6
How to have multiple fields appear in collection_select?
I have a table of employees with the fields "last_name" and "first_name". I would like to populate a collection select so that what the user sees in the drop-down is "Last Name, First Name". So far, the only way I have figured out to do this is by using "find_by_sql" in my model, like so: @employees.find_by_sql("SELECT id, concat(last_name,
2006 Jun 04
3
Ajax table does not update
I have two models: Child and Day. A Child has many days, and a day belongs to a child. I want to create ana ajax table listing the children and, after pressing a button, I want to show the days that belong to that child. Here is my code: (list.rhtml) <table> <tr> ... <td><%= link_to ''Days'', :action => ''show_days'', :id =>
2006 Jun 17
2
problem with select_date
In my form I have these items: <%= select_year Date.today, :start_year => Schoolyear.get_startdate.year, :end_year => Schoolyear.get_enddate.year %> <%= select_month Date.today.month %> No matter what I do, in my controller I can''t seem to access the selected year and month. I have tried params[:month].to_s and also
2006 May 15
2
collection_select and validation problems
I keep getting the error below when I use validations with collection_select. 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.inject Extracted source (around line #22): 19: <td>Vendor</td> 20: <td> 21: <!-- vendors --> 22: <%=
2006 Mar 14
2
Nubie: collection_select with two fields concatenated
I have a table with (among others) :prefix and :lastname In my view in a collection_select I want to see "prefix lastname". I have ab-so-lu-te-ly no idea how to do this. Can anybody show me? -- Posted via http://www.ruby-forum.com/.
2006 Mar 25
1
Nuby: HABTM and drag-and-drop views
I have two tables that have a HABTM relationship: Teacher has_and_belongs_to_many Groups, and Group has_and_belongs_to_many Teachers. This is what I want: select a Teacher, and then drag Groups from one box to another to assign them to the teacher. Or, select a group, and drag and drop Teachers to assign them to groups. All using AJAX, (off course). Only problem is, I don''t know
2006 May 07
1
Anyone care for a braindump?
I have this problem with records that have to be alligned on end- and startdate. I came up with the following. but am not convinced that this is the best way to tackle this problem. Anyone care for a braindump? def head_to_tail # Remove days that have startdate >= self.startdate AND enddate <= self.enddate # # before after # # |=====| |=====|
2006 Mar 17
0
unit_tests and deleting from the database
I get errors when running rake test_units: test_destroy(LocationTest): ActiveRecord::StatementInvalid: Mysql::Error: #23000Cannot delete or update a pa rent row: a foreign key constraint fails (`overblijf_tst/groups`, CONSTRAINT `fk _groups_locations` FOREIGN KEY (`location_id`) REFERENCES `locations` (`id`)): D ELETE FROM locations Any pointers?? -- Posted via http://www.ruby-forum.com/.
2006 May 26
0
Hellp needed with sublist plugin
Is there somebody out there who has built a working thingy with the Sublist plugin? I can''t get it to work. I get this error message: undefined method `stringify_keys!'' for "2005":String RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace E:/Programmeren/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:1506:in