similar to: How to display model data along with the images from the file store

Displaying 20 results from an estimated 20000 matches similar to: "How to display model data along with the images from the file store"

2006 Apr 12
9
Showing Images from a file store
Hi all. I am wrting a small content management tool for my company and was trying to display some images from our file store shown below. <td> <img src="\\xx.xx.xxx.xx\xx\xx\xxx\abc.gif"/> The app was displaying the image when it is under the \public\images directory. Is there anything special we need to do to get a file from outside the root of the application? Any help
2006 Jan 28
2
Trying to understand the difference between similariterators
No I have tried that. It gives me just this output # -----Original Message----- From: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Pat Maddox Sent: Friday, January 27, 2006 2:48 PM To: rails@lists.rubyonrails.org Subject: Re: [Rails] Trying to understand the difference between similariterators Well first of all, when you''re iterating
2006 Jan 27
2
Trying to understand the difference between similar iterators
What''s the difference between these two? Objective: Trying to display the addresses of the students that has "has_many" relations with addresses <td><% @student.addresses.each {|address| "Address: #{address.addr1}<br/>"} %> </td> ****** did not work <% end %> This code worked: <td><% @student.addresses.each do |address|%>
2006 Feb 02
4
Doubts on validation
Hi All, View ******** <tr> <td><b>Student: </b></td> <td><%= text_field "student", "fname", "size" => 40, "maxlength" => 40 %></td> </tr> <tr> <td><b>Program: </b></td> <td><select id="student_program_id"
2006 Jan 18
6
Mention about an open source image editor
Some days back there was a mention about an open source image editor that people uses for application layout designing. I have forgotten about the name of that software. Can someone send me the link? Silvy Mathews
2006 Jan 08
4
Rails table pluralizing Issue
Hi, I am working on a table with name "addresses". However when I do a ruby script/generate scaffold Address, I am not able to access http://localhost:3000/addresses. I am getting the following error. uninitialized constant Addres This error occured while loading the following files: addres.rb How do I resolve this issue. Thanks Silvy MAthews
2006 Jan 04
3
PDF Form Reader using rails/ruby
Can someone guide me the best possible way to read a PDF form fields. I have seen some references to the PDFWriter but not the reader. Any help appreciated. Thanks Silvy Mathews -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060104/641bd399/attachment.html
2006 Jan 18
5
Inserting the parent Id to the child table
Hi All, I need your suggestions for the following. I am still learning RoR and pardon my ignorance. I have say two tables. Table A : students Table B : addresses Table B has student_id as the foreign key to Table A If I am displaying the list of students and wanted to get individual students addresses based on their id, is the only option is to get the id from students controller method list
2006 May 24
0
Sorting Using HABTM table joins
I have an interesting problem that I am not sure how to approach so I thought I''d ask for some advice. I have an a shopping cart application that uses HABTM table joins. I have a table for products (music) and one for artists associated with the products. Any product can have one or more artists associated with it. I then create a product listing of the whole catalog like so Artist
2006 Jan 09
3
Design Question
I am sure some of you can give me an insight into this. This is more towards the database design for the scenario below: Say for example, I have a person table and this person can have different address types. One could be Home and the other could be say Office. Should be model this Table people id fname lname Table addresses id person_id addr1 addr2 .... or Table people id fname lname
2006 Dec 26
0
alias_method_chain vs. redefined method with super
I''m trying to fully understand the subtleties of using alias_method_chain to refine method behavior versus redefining a method and calling super. I have a simple data model (a music collection) that I often use to evaluate web frameworks, and I''m trying to get it working on Rails 1.2.0RC1. Specifically, I have three classes which subclass a common Artist class: - Band
2005 Dec 22
3
RoR presentations
Hi, I was wondering is there any editor that can do autocompletion as shown in the tutorials on the RoR website in the windows or linux environment. If not do any one has sharable macros that comes with textpad or any other editors. Silvy Mathews
2007 Sep 12
0
The use for an XML based metadata format
Ralph Giles wrote: > On Mon, Sep 10, 2007 at 01:19:05PM +0100, Ian Malone wrote: > >> as artist=(composer) Beethoven), I think cast lists for films present >> a similar problem. There is consistency and indexability to be >> addressed (Ludvig van Beethoven; Beethoven, Ludvig van; >> Beethoven). > > ID3 has a concept of "sort" tags, which provide a
2006 Jan 26
1
Explanation on Activerecord Associations
A while back, I had some doubts on the use of associations. I still haven''t got a satisfactory guidance so that I can spring ahead with the project. I am trying to understand from a ruby point of view on doing things. Basically I have a controller that gives me a list of students. And each student may have say home address and mailing address. Hence I can model as shown below. How do I
2002 Jan 02
3
TAG Standard - ENSEMBLE/PERFORMER tags
I've read through what I think is the entire thread and looked at the standard in its current incarnation (https://reactor-core.org/~djw/ogg-tags.txt). I have only one major problem with the proposed standard at the moment. The existance of both PERFORMER and ENSEMBLE tags. I think this is describing the same type of data (ENSEMBLE = thing that performed the music, PERFORMER = thing that
2002 Jan 02
3
TAG Standard - ENSEMBLE/PERFORMER tags
I've read through what I think is the entire thread and looked at the standard in its current incarnation (https://reactor-core.org/~djw/ogg-tags.txt). I have only one major problem with the proposed standard at the moment. The existance of both PERFORMER and ENSEMBLE tags. I think this is describing the same type of data (ENSEMBLE = thing that performed the music, PERFORMER = thing that
2007 Mar 28
0
returning images from Mongrel
I''ve been able to use Mongrel''s native API to serve up files using: response.start do |head, out| head[''Content-Type''] = resource.content_type out.write( resource.content ) end This has worked well, until I attempted to serve up images. resource.content seems to be the problem. Usually it returns the text of the page. When resource.content returns an
2006 Feb 02
0
Validation fails with select option list
I have a form with some text_field and some drop down lists. <input id="student_fname" name="student[fname]" size="20" value="" type="text"> <input id="student_mname" name="student[mname]" size="20" value="" type="text"> <input id="student_lname"
2006 Jan 03
0
PDF Form Reader
Hi All, Are there any utilities for reading the forms fields in PDF using Ruby? Thanks, Silvy Mathews
2006 Jan 05
0
I found a way to dynamically switch languages in your railsapp -- look at it and give your opinions
can you share the code so that others can benefit out of it??? silvy mathews ________________________________ From: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of sekhar Sent: Thursday, January 05, 2006 7:14 AM To: rails@lists.rubyonrails.org Subject: [Rails] I found a way to dynamically switch languages in your railsapp -- look at it and give