Displaying 20 results from an estimated 1100 matches similar to: "ActiveRecord and Images"
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 Aug 17
4
Unit Tests and lib/
Hi *, I have a few modules in lib/ and I use them mostly in my models.
I''d like to add a few unit tests and run them with rake with all
other tests of my app: where do I have to write them ?
TIA,
ngw
--
Nicholas Wieland
nicholas_wieland@yahoo.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Jul 27
2
ActiveRecord retrieval style? Lazy initialtization?
I''m using ActiveRecord for an Extract and Transform operation, so it is
outside of its native environment of Rails. I am running into a problem
with memory consumption when I retrieve large amounts of data. By large
amounts I am talking about roughly 12,700 records that each have a one
to many relationship with about 15 additional types of information. One
of those types happens
2006 Jul 21
3
ActionMailer doesn''t send any mail
I''ve configured actionmailer following the documentation, adding to
environment.rb everything for using my mail account on yahoo using
deliver_* methods to send a mail.
I can see the mail in development.log and everything seems fine, but
no mails so far.
Is there a place where can I see what the server answered, or
something to look at to solve the problem ? I have no clue,
2006 Jul 31
5
ActionWebService API
Hi *,
I need to pass a hash to a webservice, so I defined my API with:
api_method :search,
:expects => [{
:tags => :string,
:assignment => :string,
:resource => :string,
:lesson_plan => :string,
:subject => :string,
:all_types => :string
}], :returns => [[Resource]]
when I try to test the webservice with scaffold the
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 Jul 26
1
how do I change color to an highlight effect ?
This is my code:
<%= form_remote_tag :url => { :action => "forgot_account" }, :update
=> "result",
:complete => visual_effect(:highlight, "result", :duration =>
2, :startcolor => "#c8e673", :endcolor => "#9db55d") %>
If I remove colors to the effect everything works, but with this code
it renders on another
2006 Apr 13
1
Model is not a class
I''m trying to specify a model in a controller, but rails gives me
"Account is not a class", where Account is my model name ...
This is my model:
class Account < ActiveRecord::Base
validates_presence_of :email, :email_confirmation,
:username, :password, :password_confirmation
validates_format_of :email,
:with =>
2006 Feb 14
1
authentication and session variables
Hi *,
I''m looking at typo authentication, and was asking myself if it''s
correct to put in a session variable a user object which has_many
posts ...
Just because I''m rolling my own authentication system and want to
know what''s the best way to handle this issue (other than using a
generator or a plugin, which I''d prefer not to use).
--
Nicholas
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 May 22
1
Join ADS problem
Problem with join to Active Directory
[root@clust-master samba]# net ads join -S 10.0.0.1 -U Administrator
Administrator's password:
[2006/05/22 10:24:05, 0] libads/ldap.c:ads_join_realm(1640)
ads_add_machine_acct (clust): Type or value exists
ads_join_realm: Type or value exists
[root@clust-master samba]# kinit Administrator@COROD.LOCAL
Password for Administrator@COROD.LOCAL:
As you can
2006 Aug 15
1
Interval datatype in migrations
How can I use an interval datatype inside migrations ? execute ?
TIA,
ngw
--
Nicholas Wieland
nicholas_wieland@yahoo.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060815/1c262694/attachment.html
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 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/.
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 Jun 13
1
Routes question
Hi *,
I have something like
map.connect ''people/:username'', :controller => ''account'', :action =>
''index''
in my routes.rb and obviously if the user isn''t logged it defaults to
the login screen.
I''d like to be able to fetch the :username and display it in the
opposite input field inside my login page, but I
2005 Mar 02
1
using subdomains as account keys
I finally managed to use subdomains as account keys, just as in
tadalist.
Now I have an "account" variable in all my controllers, and was thinking
about what implications I''m going to have on security, because the
accounts table contains all account crypted passwords (of course).
Is it secure or not ?
David ? :)
--
checking for life_signs in -lKenny... no
Oh my god, make (1)
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 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 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