similar to: Storing images: filesystem or database?

Displaying 20 results from an estimated 20000 matches similar to: "Storing images: filesystem or database?"

2006 Jul 14
20
Method for associated relationships
I have these tables set up like this: listings has_many :states <field>state_id [int] <other fields.... .............. .............> states belongs_to: listings <field>name <other fields.. ............... .................> In my view I have <%= listing.name %> have also tried listing.state_id.name , that didn''t seem to do the magic either. This
2006 Apr 26
4
Adding a column to a table
This is a real newbie question with what i''m sure will be a simple answer... If i add a column a table (in a development application), how do i update my models to reflect this change? Cheers, Steve
2006 Jul 16
7
form_helpers ?
Just a quick silly question , are form_helpers actually helper.rb files ? Stuart
2006 May 31
5
Sharing code between some controllers? Staying DRY
Hi, I have four controllers: one for the store front and three for the store admin. In each controller I have copied and pasted exactly the same code. It is a method called redirect_to() to override Action Controller''s redirect_to(). Copy and paste is bad. I can think of two options but I don''t know how Rails will feel about them. Option 1: Can I create an intermediate
2006 Apr 25
3
Simple Rails Question
Hi, I have a few simple rails questions: Does the check_box_tag map to an int or to a boolean field within the database? Thanks in advance, -Conrad -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060425/4956dc68/attachment.html
2006 May 03
2
Conditional statement style
This is a bit of a nuby question methinks but i''ve had a play/search around and it''s just bugging me now :0) Say I have a conditional statement, testing a variable against a number of values. The first way i did this is like so: if myvar != "" and myvar != 0 and myvar != nil # .. code end This seems a bit messy - is there neater way of doing this? I thought of:
2006 Jul 22
16
capistrano deploy failing on /public/system "No such file or directory"
trying like mad to get this to work. cap setup works fine, sets up the dir structure on dreamhost (tho setup doesnt create the "current" symlink). on deploy, i get: * executing "rm -rf /home/USERNAME/dwightnight.org/releases/20060722060159/log /home/USERNAME/dwightnight.org/releases/20060722060159/public/system &&\n ln -nfs /home/USERNAME/dwightnight.org/shared/log
2006 May 09
6
To Do list project?
I''m looking for a good web-based to do list app. Essentially, I''d like to use Basecamp''s todo management system, but that''s not an option since I can''t install Basecamp on a server I own. The information being tracked in the list cannot be sent out of my intranet. I would imagine that there are a couple of open source rails apps that would meet my
2006 May 30
4
Help with Shopping Cart example from Agile Web Development 2nd Edition
Hi I get to about page 103 of the book and get an application error. Further investigation reveals the following error in the dev log: Mysql::Error: #42S22Unknown column ''id'' in ''where clause'': UPDATE sessions SET `data` =
2006 May 30
3
match operator in find
Greetings! Is there some special syntax required to use the match operator (=~) in a find operation? Or is it not possible? I''ve got some data items from an external source that could be capitalized or not. So right now I''m stuck with doing: Item.find(:first, :conditions => ["name = ? or name =?", Potatoes, potatoes]) I''d prefer to do:
2006 May 24
22
Components going out of style?
I see in the new Agile Rails 2nd edition that components are going out of style? Is this so? has anybody abandoned the idea of components for helpers? Specifically I''m considering a menu sytem for a website that depends heavily on the users permissions to decide which menu options a user would need to see. I thought that components, since they have the logic in the controller and
2006 Mar 14
8
"Database" as a collection of XML docs
Hello everyone, A new project I''m starting on has a "database" consisting of many 10s of thousands of XML documents. They all conform to a common schema. The project consists pretty much exclusively of searching and presenting existing data - there''s no need (for the forseeable future) to be able to input or update XML documents in the database. Unlike (say) blog
2006 Apr 24
5
New RBAC Plug-In for Rails
Hi, I just finished writing this plug-in. I''ve been using rails for awhile but this is my first time extracting some code and writing it as a plug-in and I''d love to hear to some feedback. Thanks. http://mitchellhashimoto.com/rails/role-based-access-control-plug-in-for-rails/ -Mitchell -- Posted via http://www.ruby-forum.com/.
2006 Jun 09
9
Opinions on catch-all routing?
I remember reading somewhere a tip on improving your search engine ranking, by forming URLs that included relevant text, e.g. www.domain.com/article/man_eats_hat. In the rails app that I''m writing, I''ve noticed I can set this up very easily by appending the post title (after downcase.split.join(''_'')) to the post link. So, blog.com/posts/4 can easily also be
2014 Dec 26
3
Awfully slow dovecot
On Dec 25, 2014 3:15 PM, "Reindl Harald" <h.reindl at thelounge.net> wrote: > > > Am 25.12.2014 um 21:09 schrieb Benny Pedersen: > >> Robert Schetterer skrev den 2014-12-25 19:49: >>> >>> Am 18.12.2014 um 17:56 schrieb Robin Helgelin: >>>> >>>> We?re using dovecot 1.0.7 >>> >>> that version is total out
2006 Apr 28
9
How to display numbers or word graphically?
Some blog sites and others (ticketmaster, for example) require you to read a graphical representation of a word or number to prevent a form from being submitted programmatically. I''d like to do something similar on a new site I''m building. Two quick questions: 1. Is there a standard term for these graphical representations? i.e. how would I do a google search for this
2006 Jun 05
18
Ideas for Rails Shirt Graphics
I''ve had a couple ideas for Ruby on Rails shirt graphics for a little while now: 1. "Fuck You" superimposed over, oh, probably a Ruby gem. Or Rails of some sort. 2. "Ruby on Rails" superimposed over rails of cocaine. Maybe also with a graphic of a crazed looking coder. Anybody got graphics? Or can make them? Heh! Joe -- Posted via http://www.ruby-forum.com/.
2006 May 30
16
Is Rails a good place to start for a newb to the database
Is Rails a good place to start for a newb to the database world ?? I need to make a database that is searchable with multiple filters that can be turned on and off at a moments notice kinda like java xhtml dynamic loading.. I have not worked with php or mysql much more than basic scripts running and website defaults. so I am new to the racket and want to pick something that is robust and
2006 Jul 05
6
upload file in a database or a server?
Hi, I would like some suggestions. I''m wondering if it''s better to upload a file directly into a database or to put the file into the server and keep the path in the database? Thanks, Eric -- Posted via http://www.ruby-forum.com/.
2006 May 11
18
Object constructors - Noob Question
Hi: Sorry if this is a painfully stupid question... I have some data I need through the life of someone''s session. In the application controller, I grab the data and store it like so: session[:foo] = @foo Now, whenever I need to access data about foo I don''t need to cause any DB io, I can just grab foo from the session (it''s very small fyi). Here''s what I