similar to: n-to-m relationships in Forms

Displaying 20 results from an estimated 4000 matches similar to: "n-to-m relationships in Forms"

2008 Jan 31
3
Handling multiple Check boxes in a XHTML Strict way
Hi, The default way we handle an array of checkboxes is like this: <% items.each do |item| %> <%= check_box_tag ''item[]'', "#{item.id}" %> <% end -%> this returns an array item[] that holds the ids of all the items. Now the real issue: 1. The above loop will same ids to ''n'' items 2. All ids will be ''item[]''
2006 Jan 09
1
Saving an upload
I am creating a database for movies (films) and television shows (shows) that will have has_and_belongs_to_many relationships with the pictures table. CREATE TABLE screenshots ( id serial NOT NULL, filename character varying NOT NULL, content_type character varying NOT NULL, primary key (id) ); CREATE TABLE films ( id serial NOT NULL, name character varying NOT NULL,
2006 Apr 04
3
newbie - HABTM problems writing to Join Table in SQL
I am attempting to document a join between two tables. There seems to be no writing to my database. Please help me out it is driving me absolutly crazy. Basically i''ve got a table of directors that is called when the new/edit controller model for films is activated. It shows the user a selectable list of directors they can apply to films. The problem is in the update/create part. I
2002 Mar 20
2
include exclude help please.
hi. I know this is a big topic on the list, please forgive me. rsync -avv --include "/film/jonah/**/sourceimages/*.tif" --exclude "*" /film /tmp i'm trying to copy all *.tif 's that are in a */sourceimages/ directory and that are only under /film/jonah. i would like to copy the directory tree and tif files to /tmp i was able to copy ever tif with: rsync -a
2008 Mar 18
4
HTML5's audio/video and Markdown
Does anyone have any toughts on how one should be using <video> & <audio> with Markdown? Using the link or the img syntax? Maybe: [a film](film.m4v) [an audio](audio.mp3) could create: <video src="film.m4v" controls><a href="film.m4v">a film</a></ video> <audio src="audio.mp4" controls><a
2002 Dec 10
4
most pointless mentioning/advertising of a format in a film i've ever seen
In the recent muppets christmas film, god (played by whoopi goldberg- or howevr u spell her name), mentioned converting her entire album collection (every album ever recorded. ever) to mp3 files. Now that is the most pointless use of advertising the inferior mp3 format i've ever seen. Now that we've started covering the use of vorbis in games, anyone spotted any reference (no matter how
2006 Jan 25
1
deep inspecting attributes
Hi there, in one of my templates I have the following code: <% for film in @artist.films %> <h3>films</h3> <p><%= link_to film.title, :controller => ''films'', :action => ''showfilm'', :animate_title => film.animate_title, :page => ''synopsis'' %></p> <% end %> however if I do: <%=
2006 May 18
1
ActiveRecord problems from within template
Hi, my Film model has this: has_many :live_action_personnel, :class_name => "Credit", :include => :credit_type, :order => ''credit_types.position, credits.position ASC'', :group => ''credit_types.personnel_type'',
2004 Sep 19
2
HD WMV9 videos for download...
Came across this page... intended to showcase the high-end capabilities of WMV9... http://www.microsoft.com/windows/windowsmedia/content_provider/film/ContentShowcase.aspx Just thought some people might be interested in it to make some comparisons... and it's also probably some of the highest quality sample material i've found on the net... so it's also useful for me to use as
2009 Mar 11
1
Enterprise Application with O_DIRECT access
Hello everyone, I am learning and evaluating a glusterfs for film/video editing facilities. Some major film/video editing realtime applications are using the O_DIRECT file access for video/audio data files. The GLFS client via fuse mechanism is disallow the open file with O_DIRECT flag. I made a little sample code for read a file with O_DIRECT flag, and tried open the files on GLFS volumes. It
2006 Jun 21
8
Modifying Model Output
Hi! I''m a very-very new Ruby-on-Rails user even if I have some experience with other Languages (mostly PHP, so this is my first real object-oriented language) My problem, newbie-ish as it is, is the following: I have a model, Article, that returns Articles from the DB. Now, when a certain field of the model (the intro text) contains no data, I want to fill it with a truncated
2012 Feb 07
1
Drive letter doesn't resolve to a path
I want to use an application which calls vlc to work with movie files. The errors are then: "VLC cannot open /home/md/D:\film" and "VLC cannot open MRL /home/md/D%3a%..." And where the logs of wine saved? I didn't find in /var/log
2006 Aug 15
1
Problem with joining...
Hello, I am quite new to Rails and i was wondering if i could get some help to populate a join table? I got (for example) a table called films, a table called acteurs and a join table called acteurs_films. I have specified the HABTM relationship and I manage to do it through the console by doing: acteur=Acteur.new acteur.name="blabla" acteur.films << film acteur.save and
2000 Sep 07
9
Video codec
Hi, I guess this is a good time to start putting together a wish list for a video codec. I see that for audio the compression is around 10X for reasonable quality. I am sure this will start its own thread of conversation. For video you can do 40X fairly easily and the big task is to go to 80X or 100X with reasonable picture quality, say, a peak luma SNR of more than 30 dB. Uncompressed
2007 May 05
2
OggDisk?
Hi! I've seen many new standards on the Xiph page. Have you thought about creating something like "OggDisk", that would correspond to CD, DVD, BD... disks? I mean data structure (propably on any filesystem) that could be used for audio and video (and perhaps for images too?). Desired features: - Ogg centric - designed to be filesystem/disk type independant (so that you can use
2006 Aug 28
1
stop words and /''s
Hi new version of ferret and acts as ferret have sorted out the scary glibc *** linked list pointer errors, thank god! New version are good but some searches are still not working. It is mostly the stop words ones. For example the "For Sale/Free/Swap" fails but works when "for" is stripped out. I have read all the recent posts regarding this issue and failed to get it to
2015 Feb 27
2
Samba 4, winbind and Active Directory integration Microsoft Windows Services for UNIX
Hi, I've successfully configure idmap_rid to read id mappings from our AD servers: winbind enum users = Yes winbind enum groups = Yes winbind use default domain = Yes winbind nested groups = Yes winbind separator = + winbind offline logon = false idmap config *:backend = rid idmap config *:range = 50000-99999 idmap config
2017 Jul 12
1
metRology package
I'm having trouble with a simple application with metRology. I need to estimate the uncertainty of the density thickness of seven sheets of film. This is calculated from measurements of mass, length and width of rectangular samples of film. It's not too hard to calculate the whole thing with a little Monte Carlo loop. I get about 0.07 with this: #sample area
2006 Jul 07
4
Calling a method each time an ActiveRecord Object is accessd
Hi, I know that it is possible to execute code each time data is saved into a model by using the +validate+ method. However, is there also a way to execute code each time the data is accessed, not just when it is changed? Bye, Winsmith -- Posted via http://www.ruby-forum.com/.
2006 Jul 07
3
quick send_data question...
Hi, I am using send_data to allow users to download files from the database but ran into a small problem, it seems that files upload fine but when they download only 64kb of the file is sent. I''m using the basic rails code from the Agile book: #upload code in my sheet model def file=(document_field) self.filename = base_part_of(document_field.original_filename)