similar to: Handling Images And Rails

Displaying 20 results from an estimated 2000 matches similar to: "Handling Images And Rails"

2005 May 19
5
[OT] Sqlite2 question
So, under Sqlite2, if I want to update a database''s schema, I have to dump the DB, modify the table''s structure, then go and modify EVERY insert statement. The insert statements look like (from memory): INSERT INTO my_table VALUES (''some_id'', ''some_val'', '''', '''', '''', ''some_other
2005 Mar 05
3
routes inconsistency?
Hello, As a small excercise in learning rails, I''ve been porting a very simple website from SSI to rails (yep, a bunch of static files that were previously served with a tiny bit of SSI magic are now served by a database-backed rails, it''s total overkill, I know). Part of the reason is that I''m trying to move from apache to lighttpd, and lighttpd''s SSI for
2007 Apr 20
2
order of registering uri''s matters for URIClassifier ?
Hi all, I''m playing around with mongrel handlers and I came across a behaviour that seems abnormal to me with regard to the Configurator#uri calls. It appears that order matters. For instance: ... listener do uri "/icons", :handler => DirHandler.new("/var/www/icons") uri "/", :handler =>
2006 Apr 17
8
file upload
This is probably me having an issue with the mvc way of living.. .I''m used to perl/php scripting... I''ve got a photo blog I''m making... and in past iterations of this website, I''d just name the photos after the id of the entry. For instance: /photos/id.jpg /photos/id_thumb.jpg However, I''m having trouble finding an easy way to do this with rails.
2007 May 10
5
Segmentation fault on large index
I''m getting a segmentation fault on a large index (15GB). I''m running ferret 0.11.4 on OpenSuSE 10.2 with ruby 1.8.6. The segmentation fault appeared after I optimized the index, see further below for the error message I got before that. Ferret works perfectly on other (smaller) indexes. Is this a known issue, and if so, is there a workaround? --------------------- after
2008 Nov 19
3
Rails.cache and problem with model id?
I have the following: MODEL: def self.get_tag_cloud Rails.cache.fetch(''fetish_tag_cloud'', :expires_in => 1.hour) do find(:all, :conditions => [ "approved_for_tag_cloud = true"], :order => "LTRIM(name)") end end CONTROLLER: def index @fetishes = Fetish.get_tag_cloud end VIEW: .... <% @fetishes.each do |fetish| -%>
2006 Mar 20
2
Capistrano, ftp user and svn user are different
What do you do when the ftp login username is different then the svn username? Every time I try to deploy it gets stuck right here: [kopanas.com] executing command ** [out :: kopanas.com] Authentication realm: <http://kopanas.com:80> kopanas.com ** [out :: kopanas.com] Password for ''jkopanas'': ** [out :: kopanas.com] subversion is asking for a password ** [out ::
2006 Feb 14
8
Best Practices For back/cancel/return button
Are there any best practices for implementing a back/cancel/return button... even when the page you want to return people too is 2 pages back (when people submit form and then want to return)? Thanks :-) Your Friend, John Kopanas http://www.kopanas.com ===================================================================== http://www.soen.info - source of the freshest software engineering
2005 Mar 11
4
actionmailer settings
A couple questions: 1) How does rails no if you are in your test, dev or production environment? 2) Does anyone have an actionMailer server settings that will work on your standard local machine? I will use the one provided for my textdrive account but for testing on my machine I am getting connection refused. Thanks. Your Friend, Jonathan Kopanas http://www.kopanas.com
2006 Feb 12
5
Passing Multiple Values In URL
Been a while since I programmed in Ruby and Rails and some of the basic concepts I just loose so quickly. This one I can''t find any examples of. I want to pass two pieces of information in my URL. The :id plus I want to pass my user_id. How do I pass it using the link_to? Stupid question I know... but I can''t find the answer. John Kopanas http://www.kopanas.com
2006 Jun 19
9
Railsday 2006
Can you guys post a demo of your application ? Would be great. Thanks, Pratik -- rm -rf / 2>/dev/null - http://null.in
2006 Feb 14
6
Creating a String of Random Characters and Numbers
I want to create a random string of length n that is made up of characters and integers. Is there a function in rails or ruby that allows me to do this? Thank you my friend :-). John Kopanas http://www.kopanas.com ===================================================================== http://www.soen.info - source of the freshest software engineering information on the net
2006 Jun 10
3
Weird Problem With Active Record
Is it me or is my model getting the created_at from the wrong model! I have a HABTM relationship between Problems and Tags. In one of my controller I do the following: def view @tag = Tag.find_by_name @params[:id] end In my view I do this: <% @tag.problems.each do |problem| %> ... <%= problem.created_at %> ... <% end %> Now, how come the created_at
2006 Oct 22
3
Date Helpers?
Does anyone have any ideas off the top of there head how to easily construct a date helper as one would see in Rails? Thanks, Michael Gorsuch http://www.styledbits.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20061022/7dda5a52/attachment.html
2006 Mar 21
2
Migration ~ Create
In one of my migration files I have the following: =========== def self.up User.create :name => ''John Kopanas'', :email => ''john@kopanas.com'', :password => ''test'' end =========== When I run it I get the following error: =========== undefined method `create'' for
2006 Mar 20
4
Capistrano: cap show_tasks working but rake show_tasks not?
Does it make sense that if I type cap show_tasks it works but when I type rake show_tasks I get: rake aborted! Don''t know how to build task ''show_tasks'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:1287:in `[]'' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:300:in `[]''
2006 Feb 16
5
Edge Rails, Ruby 1.8.2 and "uninitialized constant ''modelname''" error
I know it might seem like I am repeating myself but I can''t seem to find the solution to my problem. I am trying to run edge rails using "rake freeze_edge" and every time I do that my application stops to work. I get an error on every page. I get a "uninitialized constant modelname" error where modelname is the object being created for that view Has
2007 Jun 20
4
custom menu plugin not working in 0.4.4
I was pushing out a new version of a site I have that I think was last generated with webgen 0.4.1. Since my gems are updated to 0.4.4 I''m getting this error when running ''webgen''. I''ve reverted back to 0.4.2 and that is the version where this custom vertical menu plugin starts breaking. So I''m not sure what has changed to cause this. I get this
2006 Feb 17
2
acts_as_versioned and acts_as_taggable on same model?
I am trying to use acts_as_versioned and acts_as_taggable (plugin) on the exact same model. Has anyone successfuly done this? I think what I need to do is make model_versions acts_as_taggable instead of my main model. Anyone have any other suggestions or any suggestions how to do this? Your Friend, John Kopanas http://www.kopanas.com
2006 Jun 09
2
Creating An Extra Association Between Two Tables
Good Friday Everyone :-). These are my models: Problem -> has_and_belongs_to_many :tags Tag -> has_and_belongs_to_many :problems Now if a tag does not exist and I create it and associate it to the problem it works self.tags << Tag.create(:name => tag) But if I have the tag already in the DB and just want to link it to another problem it does not really like me. I do it