similar to: belongs_to and has_many

Displaying 20 results from an estimated 110 matches similar to: "belongs_to and has_many"

2006 Aug 05
3
Four Days on Rails
I''ve been reading the tutorial and I have problems with the TinyInt(1) for the attribute "item.done". I thought this thread would be the best to post it. I''m using Rails 1.1.14. When in the partial template _list_stripes appears: <%= list_stripes["done"] == 1 ? show_image("done_ico.gif") : "&nbsp;" %> it always returns the
2006 Feb 24
1
Help a n00b?
So I''m trying to do that hot new thing with AJAXy forms: http://idiet.toasterwaffles.com/foods/list Here''s the relevant code in list.rhtml (for the form portion) <tbody> <%= render_collection_of_partials "list_stripes", @foods %> </tbody> <tfoot> <tr id="addFood"><%= form_remote_tag( :html =>
2006 Apr 28
1
acts_as_taggable help
Ahoy, having a bit of difficulty w/ the acts as taggable GEM. I was able to create a tagcloud, but now i want to filter items by tags. in my controller i have def show_tagged_with <-- snip snip --> @items = Item.find_tagged_with( :any => params[:tag_name]) @categories = Category.find_all @tag_name = params[:tag_name] @tagged_items = Item.tags_count(:limit
2006 Jun 25
4
Zebra Striping a Collection of Partials
I''m using render to display a collection of partials, where each partial is a table row. Is it possible to zebra-stripe the table using this method i.e. alternate table rows get a different CSS class? I can''t work out how each row partial would know whether it was odd or even. In the normal scheme of things I could do: <% odd_or_even = 0 for asset in @assets
2002 Jan 02
0
Unable to use Samba in Win2K Domain
Hello. We recently migrated our site from an NT domain model to a 2000 domain model (active directory). In the process, I've found that I'm unable to use Samba with our new domain. These same machines were able to function properly as domain I've tried samba versions 2.2.2 and 3.0alpha12. The systems running Samba are all running Solaris 8. Prior to the migrated to Active
2007 Sep 28
2
form action url example
Hi, I have the following example: it ''should have a form with an action attribute'' do response.should have_tag( "form[action=?]", ''/users/1/machines/1/trouble_tickets'') end for a form like so: <% form_for( :trouble_ticket, :url => { :action => ''create'', :user_id => @machine.current_owner,
2006 Jan 08
1
Subclassing only a specific portion?
Hi, I''m sure there is an easy way to do this, but I just can''t see it: I have a large amount of rooms, that are for different purposes, and for only one ''purpose'' do I want to create a specific subclass. Ex: banquet,wedding,admin. I want to have additional information about admin rooms. Trying to use the ''type'' field just gives an error
2019 May 24
3
[PATCH] (vesa)menu.c32: Add support for BLS
Modern distributions are moving toward a common boot scheme called "The Boot Loader Specification". This patch enables syslinux's (vesa)menu.c32 modules to parse the drop-in files that are defined by this new specification. Link to The Boot Loader Specification: https://systemd.io/BOOT_LOADER_SPECIFICATION Link to demonstration bootdisk image (82MB gzipped):
2016 Jul 26
5
[PATCH v2 0/4] Improve LVM handling in the appliance
Hi, this series improves the way LVM is used in the appliance: in particular, now lvmetad can eventually run at all, and with the correct configuration. Also improve the listing strategies. Changes in v2: - dropped patch #5, will be sent separately - move lvmetad statup in own function (patch #2) Thanks, Pino Toscano (4): daemon: lvm-filter: set also global_filter daemon: lvm-filter:
2005 Dec 27
2
NoMethodError in new scaffold
Hi All, I created a new rails application using rails 1.0. I used "ruby script\generate scaffold" for each of my tables. This worked on all but 2 of my tables. When I go to the new or edit action of my requests or admins table, I get the error below. On one table called admins I hadn''t followed the correct naming convention and wasn''t able to edit or create
2017 Mar 10
1
[PATCH] appliance: run systemd-tmpfiles also for /var/run
Commit a6330e9d3af0f5286f1d53d909fd868387b67f69 enabled /run for systemd-tmpfiles: while this works fine in most of the cases, there are few tmpfiles configurations that still references /var/run instead of /run. As result, include also /var/run in the systemd-tmpfiles execution. --- appliance/init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appliance/init
2016 Jul 26
8
[PATCH 0/5] Improve LVM handling in the appliance
Hi, this series improves the way LVM is used in the appliance: in particular, now lvmetad can eventually run at all, and with the correct configuration. Also improve the listing strategies. Thanks, Pino Toscano (5): daemon: lvm-filter: set also global_filter daemon: lvm-filter: start lvmetad better daemon: lvm: improve filter for LVs with activationskip flag set daemon: lvm: list
2019 May 25
2
[PATCH] (vesa)menu.c32: Add support for BLS
On Sat, May 25, 2019 at 3:42 PM Sebastian Herbszt <herbszt at gmx.de> wrote: > > Gregory Lee Bartholomew wrote: > > Modern distributions are moving toward a common boot scheme called > > "The Boot Loader Specification". > > Which distributions are using this yet? > > > This patch enables syslinux's > > (vesa)menu.c32 modules to parse the
2006 May 17
0
acts_as_versioned with lock_version bug?
Hello. The acts_as_versioned plugin works fine ... till the adjunction of optimistic locking via the lock_version table column. Here is the problem description: Without optimistic locking things are fine: # ++++ The table creation migration ++++ % cat db/migrate/001_create_tables.rb class CreateTables < ActiveRecord::Migration def self.up create_table :softwares,
2020 May 07
3
[PATCH v2 0/2] add FreeIPA offline unenrollment (RHBZ#1789592)
This patch series adds a new virt-sysprep operation to offline unenroll a guest from FreeIPA. It does so by removing some configuration files and certificates. Changes from v1: - the other patches were pushed, as unrelated and approved - created a new kerberos-hostkeytab operation Pino Toscano (2): sysprep: add IPA offline unenrollment (RHBZ#1789592) sysprep: add Kerberos keytab file removal
2012 Sep 03
2
[PATCH] sysprep: remove hostname from ifcfg-*
Remove hostname from network interface configuration. Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com> --- po/POTFILES-ml | 1 + sysprep/Makefile.am | 1 + sysprep/sysprep_operation_net_hostname.ml | 58 +++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 sysprep/sysprep_operation_net_hostname.ml
2006 Jun 13
11
Question: Migration - multiple creates
I want to create a migration file that creates multiple tables, so i''m guessing the correct format would be: Can anyone confirm ? I''m guessing that each new create script requires a seperate class so formatted this way. Perhaps I''m wrong. TIA Stuart class CreateTable1 < ActiveRecord::Migration def self.up create_table :table1s do |t| t.column :length,
2012 Aug 08
1
[PATCH] sysprep: remove the process accounting log files
We just remove the process accounting files previously without touch a empty file, this will cause psacct runs error. Restart the service can't help us create this file auto. couldn't open file '/var/account/pacct': No such file or directory Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com> --- po/POTFILES-ml | 1 + sysprep/Makefile.am
1999 Jun 01
0
PCounter and Samba
Dear Sirs, I used to asked Andy about PCounter and Samba a year ago. Last weekend I've just tried PCounter V.2 for NT and Samba the latest main brance. Here is the result. I set up 1 NT PDC and 1 standalone NT server (not a PDC, just a standalone). Then I installed PCounter on the standalone server. The standalond server didn't have any user accounts. The PDC did. I could set PAdmin so
2001 Nov 12
1
Problem with Automatic Printer Downloading in Samba
Moved to samba@samba.org On Wed, 7 Nov 2001, Karthik S wrote: > I installed Samba 2.2.1a in Linux and tried to configure it for > Automatic Printer Driver Downloading. While uploading the driver files > to the Samba Server, although all the driver files get copied to the > correct location and the printer gets added to CUPS, I get a message > "The operation could not be