similar to: How to persist file upload fields after a validation error.

Displaying 20 results from an estimated 3000 matches similar to: "How to persist file upload fields after a validation error."

2009 Jun 19
1
config.action_controller.session_store = :active_record_store
Hi All, I am new to Rails and learning rails reading ebook ''Agile web development using rails''. I am doing samples given in this book chapter by chapter. but I stuck when I come to Sessions chapter, they have given that to enable session to be Database based the line config.action_controller.session_store = :active_record_store is to be uncommented from config/environment.rb
2009 Jun 02
1
406 Not Acceptable response
I want to send a response in a content type that is not listed in the request Accept header. When I try to do this in Rails a response of status code 406 Not Acceptable is sent. I would like to know how to do this. Ps: A example of a API that do this is the Sun Cloud API, where the errors are sent in a specific media type (http://kenai.com/projects/
2009 May 22
2
using console is a proper way in produciton?
Hello. I''ve planned to use script/console to support mainloop for my rails application. I need some infinite loop for doing my logic. For example, I want to give a point every second to users. to do this task I think I simply code like this: loop { GivePoint(); sleep 1 } on script/console and handle taks in the GivePoint method. Can this way work fine on commercial application? In fact,
2009 Apr 09
4
create_table with unique combo
I need to create a table replacing default integer id with a string id and making a combo of (id and version) unique primary key. Here is what I''ve got so far. class CreateCatalogs < ActiveRecord::Migration def self.up create_table :catalogs, :id => false do |t| t.string :id, :limit => 20, :null => false t.string :version, :default =>
2009 Apr 13
4
Creating Methods in the Model?
Hey Everyone. First day diving in to ROR and Ruby... My question is how do you define methods with in the model class and/or should I even be doing this? It is my understanding that you should put as much of the business logic into the model as possible. I want to do some data manipulation before I things are submitted to the database IE (Create a variable out of two submitted via form, as
2009 Apr 29
1
Driving me nuts!!! - Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
I had to put a new HD in, and now I''m reinstalling everything, and can''t get mysql to fully work. I can''t remember how I fixed it. I''ve searched everywhere online and can''t find anything. when I try to use the >mysql command I get this: Can''t connect to local MySQL server through socket ''/tmp/ mysql.sock'' (2) My first
2009 Jan 23
3
Bug regarding ActiveRecord and TimeWithZone
I''ve discovered a strange behavior regarding ActiveRecord and TimeWithZone I''ve seen the error when using SQL Server, I have not yet tried with any other database. Here''s output from the console - "User" is a simple model made with a migration. ----------------------------------------- >> d1 = User.find(:first).created_at => Thu, 21 Jun 2001
2009 May 13
4
Setting flash notice via javascript?
I am using a javascript to redirect to another action. Is there a way to set the flash [:notice] in the javascript? So when the javascript redirects, the new action/view picks up the flash[:notice]? (I suspect I may have to do something like url?notice=.....) ideas? thanks.
2015 Feb 05
3
Resubmission after N days
Am 05.02.2015 um 12:18 schrieb Steffen Kaiser: > On Thu, 5 Feb 2015, Thomas G?ttler wrote: >>> What specific action shall be done via IMAP? The move? >>> Then use any IMAP client library, use the LIST command to get the mailboxes, FETCH to get the messages and COPY/EXPUNGE >>> to move them. > >> You are right moving the mail should be simple. > >>
2015 Feb 05
2
Resubmission after N days
> What specific action shall be done via IMAP? The move? > Then use any IMAP client library, use the LIST command to get the mailboxes, FETCH to get the messages and COPY/EXPUNGE > to move them. You are right moving the mail should be simple. I ask myself it is possible to store the date of the resubmission in the mail itself. Thomas
2015 Feb 04
8
Resubmission after N days
Hi, I would like to implement a 43Folder system[1] with dovecot and a mail user agent. Use case: - I have a new mail in my inbox. I read it and see that I can't handle it now. I want to handle this mail in 5 days. - Now I want to have some sort of resubmission: the mail should be moved to a different location for these 5 days. - After 5 days the mail should be moved to my inbox again. How
2015 Feb 04
3
Resubmission after N days
Am 04.02.2015 um 07:49 schrieb Steffen Kaiser: > On Wed, 4 Feb 2015, Thomas G?ttler wrote: > >> I would like to implement a 43Folder system[1] with dovecot and a mail user agent. > >> Use case: > >> - I have a new mail in my inbox. I read it and see that I can't handle it now. I want to handle this mail in 5 days. >> - Now I want to have some sort of
2006 Jun 14
6
DUNDi Docs
Does anyone know where I can find some good DUNDi docs? The ones are dundi.org are absolutely horrible. The examples in dundi.conf are pretty much useless. I still can't figure out why Digium can't write some good documentation. It's their 'baby' after all. This really drives me nuts and pisses people off in general. I've been dicking around with DUNDi for over 6 months and
2009 Aug 21
12
What to do before launching v1.0?
I’m launching a rails website, the app is written and works, undoubtedly it’ll be an unmitigated disaster when I launch but none the less I thought I’d least attempt to give myself the best chance of success by asking all the gurus here for some advice – pre launch advice if you like. In an ideal world I’d spend days and hours on all of these things and get it absolutely spot on, but as we all
2012 Mar 25
3
attempt to access beyond end of device and livelock
Hi Dongyang, Yan, When testing BTRFS with RAID 0 metadata on linux-3.3, we see discard ranges exceeding the end of the block device [1], potentially causing dataloss; when this occurs, filesystem writeback becomes catatonic due to continual resubmission. The reproducer is quite simple [2]. Hope this proves useful... Thanks, Daniel --- [1] attempt to access beyond end of device ram0: rw=129,
2009 Feb 19
8
validate for street
Hallo all, can someone tell me what can be the regulare expression for this: "The Road", "The Road 12", "Road", "On the Road 89". -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this
2009 Jan 26
5
Please help with a routing problem
Hi All I''m having some issues with the following routes problem. The routes.rb file ... map.resources :users map.connect ''/users/view_payments/:user_id'', :controller => ''users'', :action => ''view_payments'' The users_controller.rb file ... def view_payments @user = User.find[:params[:user_id]] @payments =
2008 Mar 31
1
problems when trying to run galactic civilizations on ubuntu
hey here's something what i can't solve: i installed galactic civilizations ultimate blahblah and then tried to run it. well the screen goes blank and yay but then it's just crashes back to my beautiful desktop and totally pisses me off. any hints/suggestions? thanks ps. ubuntu 7.10
2009 Apr 30
2
how to search all fields for a string in SQL ?
Using SQL or activerecord I am not sure how to search all fields for a specific value ? I know how to do this by just writing ruby code. To do it in SQL or an activerecord find w/condition, I don''t know how. I actually am supposed to combine an find w/ condition and a search all fields for a value and AND those together. I think perhaps it can''t be done with a single find ?
2013 Mar 04
2
SAS and R complement each other
I'm not sure why you posted the original note. I quit using SAS in 1991 and haven't needed it yet. Frank RogerJDeAngelis wrote > Sorry about the double post. But I keep getting 'post' rejections, so I > resubmitted about an hour later. ----- Frank Harrell Department of Biostatistics, Vanderbilt University -- View this message in context: