okay All the Best
tell me if you need my help
okay All the Best
tell me if you need my help
Ruchita S. wrote:
Why don’t you use something like file_column or attachment_fu?
There’s plenty of stuff on the internet on how to use file_column for
uploading images, creating thumbnails (you don’t need to upload a
separate thumbnail) and displaying it all.
Take a look at the main home page for file_column - the code is there:
http://www.kanthak.net/opensource/file_column/
This shows how to display thumbnails:
http://wiki.rubyonrails.org/rails/pages/HowToUseFileColumn
Regards
Mohit.
I usually store images in public\images folder.rails will automatically
take the image from there
However let me see if there is another way. I will check and will send
you asap
are you using instant rails?
it gives a better folder structure
Abhi M. wrote:
are you using instant rails?
it gives a better folder structure
No am not using dt.
controller, models, helpers and views are in a folder called apps
Like that there is a folder called public where images are stored in
images foldr
Abhi M. wrote:
controller, models, helpers and views are in a folder called apps
Like that there is a folder called public where images are stored in
images foldr
That’s not because of InstantRails - that’s the convention that Rails
follows.
Cheers,
Mohit.
11/8/2007 | 4:39 PM.
so try storing the images in images folder and you just have to call the
names
tell me whether you saw the public/images folder
Thing is if sometimes the path is outside the project folder structure
it wont accept . This case is not only for ror but also for other
technologies also. Let me check and I will notify you asap
Abhi M. wrote:
Thing is if sometimes the path is outside the project folder structure
it wont accept . This case is not only for ror but also for other
technologies also. Let me check and I will notify you asap
path is obviously inside the project folder. Its in app folder.
Abhi M. wrote:
tell me whether you saw the public/images folder
Hi… yes i have that folder. But I have defined the path in my upload
model. FILE_STORE_PATH = File.join(File.dirname(FILE), ‘/…/temp/’).
So images are saved in temp folder.
Why don’t you take this discussion off-list, or concentrate it to
fewer but longer post? This sort of ping-pong of short messages is not
really helpful to a wider audience.
8 nov 2007 kl. 10.35 skrev Abhi M.:
so did you created that temp folder
what i mean as resources folder in .net here it is public/images folder
which is the default so try that
here In the following link path is given in diff way I think
Hi check this site . this is also good for reference as well as learning
Abhi M. wrote:
also give a serach to this forum itself you may get some idea
like this one
Filecolumn and changing the root path - Rails - Ruby-Forum
Can anybdy help me out? I am using the following tutorails for image
uploading and displaying:
http://khamsouk.souvanlasy.com/2007/5/1/ajax-file-uploads-in-rails-using-attachment_fu-and-responds_to_parent
But i am getting the error
SystemExit in AssetsController#new
exit
also give a serach to this forum itself you may get some idea
like this one
http://www.ruby-forum.com/topic/129946#new
On Nov 8, 10:38 am, Peter B. [email protected] wrote:
Why don’t you take this discussion off-list, or concentrate it to
fewer but longer post? This sort of ping-pong of short messages is not
really helpful to a wider audience.
I must agree with Peter. First, half of this thread is personal
conversation between Abhi and Ruchita and should be taken off this
list. Second, the Rails-related talk is beginning to look more like
chat. You guys should try using IRC and join #rubyonrails on freenode.
try this
@content = Content.find (:all,:order => ‘nameof the column DESC’)
eg
if name of column is “name”
@content = Content.find (:all,:order => ‘name DESC’)
Abhi M. wrote:
try this
@content = Content.find (:all,:order => ‘nameof the column DESC’)
eg
if name of column is “name”
@content = Content.find (:all,:order => ‘name DESC’)
Thanks a lot. It worked.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs