search for: loritsch

Displaying 16 results from an estimated 16 matches for "loritsch".

2006 May 25
4
How to add a migration with a plugin?
I''m working on a plugin that requires some database support to do its job (adding a model or two). I''d like the plugin to automatically add a migration once it is installed. Is there already a mechanism for this? If so, how do you do it? -- *Berin Loritsch* Owner *Work:* 571-215-7708 *Email:* bloritsch@d-haven.com <mailto:bloritsch@d-haven.com> *IM:* bloritsch@d-haven.org (MSN) *http://www.linkedin.com/in/bloritsch * * * *D-Haven* <http://d-haven.org> 20044 Great Falls Forest Dr. <http://maps.google.com/maps?q=20044+Great+Falls+F...
2006 Jul 27
2
ActiveRecord retrieval style? Lazy initialtization?
...level API to do what I need? If so, I would still like to use the ActiveRecord API for each individual record.... Using the low level API to get the list of IDs and then ActiveRecord to retrieve just the record for that ID. There''s got to be something I''m missing. -- *Berin Loritsch* Owner *Work:* 571-215-7708 *Email:* bloritsch@d-haven.com <mailto:bloritsch@d-haven.com> *IM:* bloritsch@d-haven.org (MSN) *http://www.linkedin.com/in/bloritsch * * * *D-Haven* <http://d-haven.org> 20044 Great Falls Forest Dr. <http://maps.google.com/maps?q=20044+Great+Falls+F...
2006 Mar 03
7
Workflow + Rails
Is there any project or solution for an easy integration of a WFE / WfMS into rails? I''m quite new to this topic, but I probably need a small subset of workflow patterns (or whatever the correct term is) only. Any pointers are welcome. -- Posted via http://www.ruby-forum.com/.
2006 Mar 07
6
how to add onchange javascript event to select field
I would like to add javascript ''onChange'' event handling for a select field, such as <%= collection_select("job", "client_id" , @clients, "id", "name") %> with onChange="xxx" Anyone know how to make this work? Thank you, Scott -- Posted via http://www.ruby-forum.com/.
2006 Mar 07
6
Flickr - Tutorial
So I''ve pretty much followed the steps in the video tutorial on RoR.com for creating a small app, to search for photos on flickr.com - all is good, and works as intended to.. How would I go about adding validation, so if no tags are specified it will fail. I know I have to use validates_presence_of :tags - but not in the controller.. so I tried to generate a model called
2006 Mar 07
6
Anybody use Red|Blue Cloth?
Does anybody use and prefer Redcloth (or bluecloth, which appears to be alpha)? Does it affect performance much? Is there a way to get it to automatically process templates without having to call textilize? Thanks, Joe -- Posted via http://www.ruby-forum.com/.
2006 Mar 06
5
Question about file_column plugin
Hi! File_column plugin saves uploaded files to "public/model/image/model_id/filename", if i understand it correctly. Does it mean that it creates new folder for every image? I have product (model) that has_many images (model). Is it possible to use (or modify) this plugin that it would save my images to different folder, so the id of the model_id part would be id of the product
2006 Mar 02
4
Getting Acts_as_Paranoid to work with validates_uniqueness_of
Hello I''ve been using Acts_as_Parnoid for a while and it has been working well but I am now having a slight issue with it. I have a company table were I would like to use validates_uniqueness_of :company_name. This validation works if a company exists in the database and has not been deleted. However, I also would like the validates_uniqueness_of to work if a company has
2006 Mar 04
13
file_column
Restricting size of an uploaded file, is how is that possible? If I do not want a user to upload a file larger than X bytes, can it easily be done? If I also would like restrict the types of files that can be uploaded, how may I do so? Thank you, Sharkie
2006 Mar 07
2
Using form_tag_with_upload_progress
All, I''m attempting to use "form_tag_with_upload_progress" http://railsmanual.org/module/ActionView::Helpers::UploadProgressHelper/form_tag_with_upload_progress However, I''m having a hard time understanding what I''m supposed to provide and where in order to take advantage of it. There''s a lot of information and I''m sure I can figure it
2006 Mar 08
3
ActiveRecord and Images
Not really a Rails question, but a "best practices" one. If I want to associate an image to every account in my application, is it better to insert the image file directly inside the db or to upload the image in public/images/ ? Also, if I want to associate a cover to a movie, what''s the best approach ? TIA, ngw -- Nicholas Wieland nicholas_wieland@yahoo.it
2006 Mar 07
6
form_tag - directing to new target window
How do I use... <%= link_to "All Facilities", :action => ''fac_log_all'' %> if I add :target => "_new" that is just a parameter and not a directive. I just want reports to print into a separate window. How do I do that? It''s not clear at all to me Craig
2006 Feb 27
12
RedCloth
Is this the prefered method to implement RedCloth in your views. I''m trying to display user input that will sometimes have code references in it. This strips out all tags. I would like for the tags to be displayed but not read as html. Thanks in advance! <%= RedCloth.new(strip_tags(comment.comment),[:filter_html]).to_html %> charlie bowman recentrambles.com -- Posted via
2006 Mar 06
20
How painful is the 1.0 -> 1.1 upgrade going to be?
Does anyone have a sense for how painful the 1.0 -> 1.1 upgrade is going to be for existing apps? I''m finishing up my first real RoR application with Rails 1.0. I can live with it staying at that level, but I really want to use the has_many :through attribute to clean up some of my code. I''m not particularly interested in edge Rails, mainly because the documentation for
2006 Mar 02
17
can''t get rails to connect to mySQL - HELP!!!!!!!!!
Sorry, but this is really NOT as easy as the tutorials/books make out. I''m really struggling at the first hurdle here. And while I''m not a programmer by design I do know my way around most stuff. And if I can''t get this to work I suspect more people will have the same issues. There seems to be too many variables to address. I have winXP, I have ruby and rails all
2006 Mar 07
0
API Suggestion
It''s not intuitive to have two hashes on any one method call. Most of the view helpers have a hash for method options followed by a hash for html options. I find it to be problematic at best. I think it would be best to have one hash and then add your html options as a hash entry. For example: <%= link_to "All Facilities", {:action =>