Displaying 20 results from an estimated 600 matches similar to: "ActiveRecord retrieval style? Lazy initialtization?"
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:*
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 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 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 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
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 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 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 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 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 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 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 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 Apr 25
1
Validating format
Hi there,
I am trying to upload a file and that is being done successfully.
Now I want to restrict the uploading i.e. make it only doc/pdf upload.
If anybody could help as how can I make that happen.
The file is a part of my table and its called file_name.
Thanks in advance.
--
Posted via http://www.ruby-forum.com/.
2007 Jul 06
1
winbindd running amok
Hi,
on a customer system samba/winbindd is used for windows and unix
authentication.
I just tuned searches of the ldap backend to speedup by factor 20-200 and
slapd now doesn't seem to be the bottleneck anymore.
Don't know how well the windows authentication now works, since this is
presently done by the heartbeat failover server.
However, simply starting 'mc' as root makes
2009 Oct 28
0
[LLVMdev] Should LLVM JIT default to lazy or non-lazy?
On Wed, Oct 28, 2009 at 11:41 AM, Jeffrey Yasskin <jyasskin at google.com> wrote:
> And a couple to default to lazy compilation:
> * It's safe for single-threaded code.
> * There are existing users who have assumed this default.
And what might break if this assumption doesn't hold?
2009 Oct 28
0
[LLVMdev] Should LLVM JIT default to lazy or non-lazy?
On Wed, Oct 28, 2009 at 9:57 AM, Jeffrey Yasskin <jyasskin at google.com> wrote:
> On Wed, Oct 28, 2009 at 9:50 AM, Chris Lattner <clattner at apple.com> wrote:
>>
>> On Oct 28, 2009, at 9:41 AM, Jeffrey Yasskin wrote:
>>
>>> In r85295, in response to the discussion at http://llvm.org/PR5184
>>> (Lazy JIT ain't thread-safe), I changed the
2009 Oct 28
1
[LLVMdev] Should LLVM JIT default to lazy or non-lazy?
Code that takes the default lazy behavior will still work if the
default is changed to non-lazy. The only way non-lazy breaks (as far
as I know) is if you've already done some lazy JITting and left some
lazy stubs laying around. And code that does that will still work,
after adjusting to an API change. This is one of the least disruptive
breaking API changes imaginable.
And getting rid of
2009 Oct 28
0
[LLVMdev] Should LLVM JIT default to lazy or non-lazy?
On Oct 28, 2009, at 1:10 PM, Renato Golin wrote:
> Creating another method (getLazyFunctionPointer) or passing a boolean,
> enum, whatever seems like the best course of action right now.
>
I think that this is a great idea. Instead of making "lazy or not" be
a policy maintained by the JIT, why don't we approach this as a bug in
the current API. Perhaps we should