#apache #archlinux #asterisk #centos #debian #gentoo #haskell #kde #kubuntu #lisp #math #mysql #perl #python #ruby-lang #rubyonrails #suse #ubuntu #vim #wikipedia 0 1 2 3 4 5 6 7 8 9 10 11 12
Top Prev 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 Next
#rubyonrails
<kain> I don't know, just cheat and run system commands
<kain> ffmpeg -y -i someclip.avi -f mjpeg -ss 10 -vframes -s 150?100 -an thumb.jpg
<kain> should do the trick
<magic_hat> kain: excellent
<macd> technoweenie, question if I try to get my stylesheet with mongrel turned off, apache gives me a bad gateway, meaning mongrel is most likely serving everything static and all.
<tauceti> hey everyone
<tauceti> Hopefully this is an easy question...
<tauceti> I'm using my webhost (BlueHost) to run a rails app. The way I'm doing it is to link (ln -s) the railsapp/public directory into the appropriate location in my server. The app runs, but it's referencing everything to /, not /blog where I linked it. Is there a way I can prefix that on?
<kandala> hello all, Can someone help me with uploading multiple files in rails. I am using acts_as_attachments plugin
<kandala> anyone help please on multiple file uploads using acts_as_attachment plugin?
<kandala> need help on multiple file uploads using acts_as_attachment plugin?
<opus_> kandala: no, but i have a question for you. when you use acts_as_attachment, where does it upload the files?
<kandala> opus_: into the database......but you can tell it to store it on the disk too..
<opus_> well.. I need to upload a CSV file.
<opus_> how can it have it save it to a file so i can parse it with FasterCSV? Or can I store it in a stream buffer like in .NET?
<kandala> opus_: I don't see a dependency between how you store the uploaded file (either in database or on the disk) and parsing it FasterCSV.
<kandala> opus_: Pull the csv file and pass it on to FasterCSV
<opus_> What do you mean by "pull"?
<kandala> opus_: Do you know send_data and send_file ?
<opus_> no
<kandala> opus_: This is my show file method in the controller http://pastie.caboo.se/41870
<kandala> opus_: if the value of :disposition is 'inline', then it will try to open the file in the browser itself
<joevandyk> any css experts want to help troubleshoot something?? I hate IE.? First person to solve the problem gets $10.? :-)? In IE 6 and 7, at 12http://www.tanga.com/, the bar that's next to the description/features/specs boxes is on top of the boxes and is broken up.? Look at it in Safari and FF to see what it should look like. You can email me at joevandyk@gmail.com if you want to collect your prize!
<joevandyk> (that site's built on Rails btw)
<smtlaissezfaire> has anyone used rspec with rails? I'm looking to remove the db entirely from my tests.
<opus_> kandala: I see.
<Nir0> hi all
<Nir0> in my old application i used some model named Log
<Nir0> now, when i tryin to do Log.find it says undefined method `find' for WEBrick::Log:Class
<opus_> kandala: so I can use send_data in my Ruport application to dump my PDF files straight to the browser, then redirect them?
<Nir0> i should rename my model or what? =\
<kandala> yeah....set the :disposition to attachment and the browser will show a open/save dialog
<kandala> need help with multiple file uploads using acts_as_attachment plugin
<lisa> in has_many :through what exactly does the :source attribute describe? the API says: ":source: Specifies the source association name used by has_many :through queries. Only use it if the name cannot be inferred from the association. has_many :subscribers, :through => :subscriptions will look for either +:subscribers+ or +:subscriber+ on Subscription, unless a +:source+ is given." but it isn't very clear to me
<mbelleza> hey..about popup window anyone..that returns an id..
<uriel> mbelleza: please, don't make the web a worse nightmare than it is already, popups should all burn in hell
<jessy_> hi
<kandala> need help with multiple file uploads using acts_as_attachment plugin
<opus_> dropping light flies I see
<devc> not me
<devc> I'm the real deal homey.
<devc> I'm here all day
<devc> all night.
<devc> hahaha.
<mbelleza> uriel: heller...what r u talking about???????
<appelza> Hi guys, I'm doing a db migration and would like to know what the ruby code would be for this SQL statement(create table, deleted_at timestamp)
<pergesu> is there anywhere to watch the videos from last year's canada on rails?
<pergesu> appelza: t.column :deleted_at, :datetime
<appelza> thanks
<arooni> hey folks...
Previous Page Next Page