search for: titaniumdev

Displaying 8 results from an estimated 8 matches for "titaniumdev".

2006 Jan 19
2
has_many :through
Has anyone had much experience using the new has_many :though options that are currently in Edge Rails? I''m looking at using it in my project but haven''t found much about it. Kyle
2006 Jan 05
1
import/export VCards
Does anyone know of a plugin or extension that makes it easy to import and export with VCards for a contact database? Thanks, Kyle
2006 Jan 24
2
collect array values
This may be more of a Ruby question, but I wasn''t sure. Is there a way to run a find on a model and then save two fields as key => value in an array for each row. Then use this array on the template for checking if various checkbox or select values are checked? I''m trying to avoid running one query to check the value for each box in the form. - Kyle
2006 Jan 23
3
create and update with has_many :through
I''m using Edge Rails and the new has_many :through in my code. What I''m trying to do is modify my create and update code to use the new relationships. I''m using a table called course_teachers for the joins. Here is what I have so far: def create @course = Course.new(params[:course]) @teacher = Teacher.find(params[:primary_teacher]) @course.teachers =
2006 Feb 20
1
Upload Text File into a string
I''m trying to upload a text file from a form and read the file into a string in my rails app. I''ve tried using @import_file = File.read(params[:import_file]) as well as File.open, but I need getting "cannot convert StringIO into String" errors. Anyone have any ideas? - Kyle -- Posted via http://www.ruby-forum.com/.
2006 Feb 23
1
Import Vcard with VPIM
I''m currently looking to build a contact manager with Rails. I need to offer Vcard import / export capabilities. I have VPIM setup in my Rails app, but I''m a little stuck on how to pull the correct data from the vcards. I''ve looked at the docs for VPIM and those have helped get me started, but I still can''t figure out how to pull specific data. As an
2006 Jan 12
3
VCard Upload Import
I''m trying to add Vcard import functionality and I keep getting the following using the code provided below. I''m using the VPIM library to decode the vcards and add them to my database table. Can someone help me out, or point me in a different direction for importing VCards. Thanks. Error: cannot convert StringIO into String Controller Code: require
2006 Jan 17
1
many-to-many with extra fields
I''m trying to work with a many-to-many relationship, but the join table needs to have a is_primary field. What is the best way to work with this (adding / changing primary / deleting)? I understand that the :through option in Edge Rails can handle this better, but I was just wondering if there was a good way to handle this with Rails 1.0. Thanks, Kyle