Displaying 20 results from an estimated 27 matches for "dhoefler".
Did you mean:
hoefler
2006 Jan 16
4
Creating two records at once
Hi there,
I have a User model and a Profile model. A user has_one profile, and a
profile belongs_to a user. The profile model contains a user_id column
as the foreign key.
The problem comes in when I want a user to register. In the
user_controller I have a method that creates the user. I also want the
profile model to be filled in with the appropriate user_id foreign key
(I don''t care
2006 Feb 17
3
Migration Errors?
...PDF preview of the book. So far
it''s excellent. I decided to try Chapter 8 of the book regarding
tagging.
I''ve done migrations before, and I feel comfortable with them, however
this error stumps me.
--------------------------------------------------
antrover:~/RubyProjects/rlog dhoefler$ ruby script/generate migration
add_db_tagging
/Applications/Locomotive/Bundles/rails-1.0.0-min.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/core_ext/hash/keys.rb:48:in
`assert_valid_keys'': Unknown key(s): polymorphic (ArgumentError)...
2006 Apr 20
2
Image Display Question
Hello there,
I have something odd happening to my image tags when displaying an image.
Here''s what my ''<img src>'' tags are looking like:
<img alt="2-thumb" src="/images/public/uploaded_images/2-thumb.jpg?" />
Notice the question mark at the end of the string. I have no idea where this
coming from. Here are the important parts of my
2006 May 23
2
In Place Editor Fields and Safari
Hi,
Does anyone else have any problems with Safari and in place editor fields?
I''m specifically talking about trying to save a null value in a text box. In
Firefox/IE/Camino/etc... saving a null value from an in place editor works
how it''s supposed to. If the value is null, then ''click to edit'' is
displayed. However with Safari when a null value is saved,
2006 Nov 04
0
rake db:migrate is semi-broken
Whenever I run rake db:migrate I get the following "error":
antrover:~/Sway/Projects/mi7/branches/sway_dev_mi7 dhoefler$ rake db:migrate
(in /Users/dhoefler/Sway/Projects/mi7/branches/sway_dev_mi7)
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/validations.rb:334:
warning: `*'' interpreted as argument prefix
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/vali...
2006 Jul 24
4
Mongrel + BackgrounDRb + File Column = Upload Progress Bar?
Hi there,
I''ve been digging around trying to find some information (mostly examples)
on how one would handle a progress bar upload using BackgrounDRb and File
Column. I did read http://backgroundrb.rubyforge.org/ and Ezra''s blog of
course, but I still have a few questions.
I made a simple upload form (as a test) that is submitted to the
"upload_song" action.
def
2006 Jul 19
0
Web Service (server) and file_column issues
...dated
members from the database. Nothing too spectacular. However, the Members
class uses file_column and when I try to connect to my web service I get
this error:
TypeError in Connect to serviceController#display_recent_updates
Do not know how to handle a string with value
''/Users/dhoefler/Projects/apps/rover/public/member/image_path/147/866786797_l.jpg''
that was passed to a file_column. Check if the form''s encoding has been set
to ''multipart/form-data''.
My web service API looks like the following for my server app:
api_method :find_members_recen...
2006 Feb 14
1
Another HABTM Question
Hi there,
I have a question on what would be the best way to save a HABTM model.
A posting habtm categories, and a category habtm postings.
class Category < ActiveRecord::Base
has_and_belongs_to_many :postings
end
class Posting < ActiveRecord::Base
has_and_belongs_to_many :categories
end
In my blog_controller, where the actual posting is saved, is where I
think I''m
2006 May 16
2
before_filter and the application controller
Hi there,
I''m having a bit of an issue with my before_filter. I know that the filters
put in the application.rb controller are global for all the controllers. In
my application filter I''d like to allow access to the RSS feed method in a
''member'' controller and skip the login checks that the before_filters are
currently performing.
In my application my filters
2006 Apr 06
4
GraphicsMagick or ImageMagick and RMagic on OS X
Hi all,
I''ve been trying to install GraphicsMagick with RMagic. I''ve tried
ImageMagick with RMagic as well. I''ve tried the installations using Darwin
Ports, Gems and from source. Nothing seems to work properly.
My specs:
ruby --version
ruby 1.8.4 (2005-12-24) [powerpc-darwin8.5.0]
rails --version
Rails 1.1.0
convert -version
Version: ImageMagick 6.1.8 04/05/06 Q16
2006 Jan 10
5
Select Tag and Associations
Hi there,
I''ve been working on this for awhile and have finally decided to ask
for a little guidance.I have a slight problem trying to save a
selection.
I have two models:
A "Posting" has_many "Categories", and a "Category" belongs_to one
"Posting". With that said, in the posting model I have "has_many
:categories" and within the
2006 Jan 26
7
Switchtower Port Issues
Hi there,
I''m having some difficulties finding some decent info on getting
Switchtower to function for my needs. I''ve read most of the
Switchtower doc on http://manuals.rubyonrails.com/read/chapter/97,
however it''s not answering some potent questions I have.
1. The doc mentions, as an example, using an SVN repos at
http://svn.switchtower.com/flipper/trunk
What if I
2006 Jun 21
7
acts_as_taggable and paginate?
Hi there,
I''ve been trying to paginate over a list of members that all share a tag in
common using the acts_as_taggable plugin. The regular way of paginating over
a collection doesn''t seem to work with acts_as_taggable. Here''s what my
method looks like that takes in a tag name, finds all the members that share
the tag and then displays all the members. Nothing too fancy
2006 Jul 24
0
Concurrent Uploads with Mongrel
Hi there,
What''s the best way with handling concurrent uploads with mongrel? The site
I''m working on could have 100 users uploading mp3s and images, or there
could be 10... who knows, 1,000 people might be uploading files all at the
same time.
Thank you,
Dave Hoefler
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Jun 09
0
Calculations based on multiple tables
Hi there,
I''m trying to grab all the contest_entries from a particular contest, and
then grab all the appropriate contest_ratings associated with the songs and
contest. The end result is an average score for each song involved in each
contest.
I made an ERD of my table structure which can be found at:
http://antrover.com/erd/contest_question.jpg
Here''s my model structure:
2006 Jun 14
0
Copy an already uploaded file using file_column
Hi there,
Is it possible to use file_column to copy an already uploaded file to
another directory? I have a list that displays a whole bunch of uploaded
files with radio buttons next to them. Whatever file is selected (and only
one file can be selected at a time), the file would then be copied into a
different directory.
Thanks,
Dave Hoefler
-------------- next part --------------
An HTML
2006 Jul 24
0
Mongrel + BackgrounDRb + File Column = Upload Progress Bar?
Hi there,
I''ve been digging around trying to find some information (mostly examples)
on how one would handle a progress bar upload using BackgrounDRb and File
Column. I did read http://backgroundrb.rubyforge.org/ and Ezra''s blog of
course, but I still have a few questions.
I made a simple upload form (as a test) that is submitted to the
"upload_song" action.
def
2006 May 10
0
Saving extracted data
Hi there,
I have a file upload form on my page that is for images. In the model I have
this:
def file_data=(file_data)
@file_data = file_data
write_attribute ''extension'',
file_data.original_filename.split(''.'').last.downcase
write_attribute("content_type", file_data.content_type)
write_attribute("current_name",
2006 May 24
0
Creating a web service
Hi there,
I was reading through the AGWD book about creating a Rails web service. I
was wondering if there are any good tutorials that I could check out?
The book did well at explaining the basics, but I wouldn''t mind looking at
some more examples that might clear some questions up (direct, layered and
delegated dispathing in particular).
Thank you,
Dave Hoefler
-------------- next
2006 Feb 22
3
Listing/Relationship Question
Hello,
I know this is probably super simple, but for some reason I just can''t get
it!
What I want to do is click on a post and display all the categories that the
post is in.
class Post < ActiveRecord::Base
has_many :categories
end
class Category < ActiveRecord::Base
belongs_to :post
end
...simple enough.
In the categories_controller I have this:
def list_all_categories