--
Posted via http://www.ruby-forum.com/.
Rain,
Override the full_filename method in your model to make the filename
whatever you want:
def full_filename(thumbnail = nil)
File.join(base_path, 'my/restful/route', thumbnail_name_for(thumbnail))
end
def base_path
''
end
Hope this helps.
--
Zack Chandler
http://depixelate.com
To Zack :
only change the full_filename doe not working.Also has to change the
route config.But I'm new to Rails, I don't know what to do.
The tutorial article hinted me by default public_filename will return
the RESTFUL URL,and the route will reach the result.Is it the Rails
version problem or someth else?
- RainChen
Please can you help me with the following:
Looking for a Ruby on Rails Developer, Salary £30K-£60K, Leicester, City
Centre
Use the latest web technology Ruby on Rails.
To develop professional web applications.
Must have written previous Rail applications.
Need the talents of a smart, experienced programmer.
Need to be attentive to detail, a team-player and responsible.
Require previous commercial experience with Ruby on Rails and dealing
with Database Schema’s to Front End Applications.
Involved with creative projects which are making them a big name in the
gaming and video industries (sony and microsoft).
Would you be interested or do you know anyone who would be interested as
there are several positions available.
I appreciate your help in this.
Ferdouse Ara
Technical Recruitment Consultant
Precision Recruitment UK Ltd
Tel +44 (0) 116 2545488
Fax +44 (0) 871 2778928
http://www.precisionrecruitment.co.uk