Forum: Ruby on Rails url_for_file_column outputting "/development" in the url

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
648d60296e65a1278017c0b9f960ec3a?d=identicon&s=25 ol1barn3s (Guest)
on 2005-12-02 22:30
(Received via mailing list)
url_for_file_column("product", "picture")

is outputting

/product/picture/development/13/4.jpg

but the file is here

/product/picture/13/4.jpg

(using 0.3.1 tag)

trying to figure out from the plugin code what could be causing this,
but so far no luck...

any help'd be greatly appreciated

tks
Oliver
648d60296e65a1278017c0b9f960ec3a?d=identicon&s=25 ol1barn3s (Guest)
on 2005-12-04 16:22
(Received via mailing list)
anyone?

2005/12/2, Oliver Barnes <ol1barn3s@gmail.com>:
B8ed55487e4f2f0feaeb68957dc07b21?d=identicon&s=25 skanthak (Guest)
on 2005-12-04 18:04
(Received via mailing list)
On 12/2/05, Oliver Barnes <ol1barn3s@gmail.com> wrote:
> (using 0.3.1 tag)
huh, strage. That shouldn't happen. What does <%=
@product.picture_relative_path %> produce?

Sebastian
648d60296e65a1278017c0b9f960ec3a?d=identicon&s=25 ol1barn3s (Guest)
on 2005-12-05 20:53
(Received via mailing list)
hi sebastian,
indeed strange, after starting locomotive again just now to try <%=
@product.picture_relative_path %>, it started displaying normally...
feels as though it was just messin with me :P
thanks for your response though
- Oliver

2005/12/4, Sebastian Kanthak <skanthak@gmail.com>:
0805040392e12c256ac6fe764b084f0e?d=identicon&s=25 aroth (Guest)
on 2005-12-05 21:10
ol1barn3s wrote:
> url_for_file_column("product", "picture")
>
> is outputting
>
> /product/picture/development/13/4.jpg
>
> but the file is here
>
> /product/picture/13/4.jpg
>
> (using 0.3.1 tag)
>
> trying to figure out from the plugin code what could be causing this,
> but so far no luck...
>
> any help'd be greatly appreciated
>
> tks
> Oliver

I also had that occur once when I installed a branch version of
file_column from SVN. I figured maybe my rails install was dirty so I
checked out a newer version and everything worked fine.
648d60296e65a1278017c0b9f960ec3a?d=identicon&s=25 ol1barn3s (Guest)
on 2005-12-05 23:21
(Received via mailing list)
go figure...

you using kyle's branch? how is it working for you?

2005/12/5, aroth <adam@mm.com>:
B8ed55487e4f2f0feaeb68957dc07b21?d=identicon&s=25 skanthak (Guest)
on 2005-12-07 00:21
(Received via mailing list)
On 12/5/05, aroth <adam@mm.com> wrote:
> >
> > (using 0.3.1 tag)
> I also had that occur once when I installed a branch version of
> file_column from SVN. I figured maybe my rails install was dirty so I
> checked out a newer version and everything worked fine.

oh, yes. I believe kyle was experimenting with a naming scheme like
this in his branch. Oliver, are you absolutely sure you were using the
0.3.1 tag?

Sebastian
648d60296e65a1278017c0b9f960ec3a?d=identicon&s=25 ol1barn3s (Guest)
on 2005-12-08 13:04
(Received via mailing list)
hi sebastian, sorry I took so long to respond.

yes, I installed it twice, one using script/plugin and the other just
copying over the install I was using for another project, which was
also 0.3.1

2005/12/6, Sebastian Kanthak <skanthak@gmail.com>:
4bd34a2216dc8bdbf1f017f64e4d59e8?d=identicon&s=25 kyle (Guest)
on 2005-12-08 20:08
(Received via mailing list)
Yeah, that looks like a url that would be used in my *experimental*
branch.  Does anyone want me to tag a stable version?

But yes, if you think about it, you should have separate file_column
folders for each database (and therefore environment) you use.  (And
if, like me, you use the Globalize plugin, each locale)  You don't
really want your unit tests overwriting your development files.  Most
of us can get away with a single folder, because our production
environment is on a different computer, but I wouldn't consider it a
best practice.

Kyle
648d60296e65a1278017c0b9f960ec3a?d=identicon&s=25 Oliver Barnes (Guest)
on 2005-12-12 03:33
(Received via mailing list)
that´d be great. but so, is this not going to make it into the next main
release?

2005/12/8, Kyle Maxwell <kyle@kylemaxwell.com>:
B8ed55487e4f2f0feaeb68957dc07b21?d=identicon&s=25 Sebastian Kanthak (Guest)
on 2005-12-13 00:20
(Received via mailing list)
On 12/12/05, Oliver Barnes <ol1barn3s@gmail.com> wrote:
> that´d be great. but so, is this not going to make it into the next main
> release?

you can easily achieve a storage path that depends on your environment
by using the root_path option like this:

   file_column :image, :root_path => "#{RAILS_ROOT}/public/#{RAILS_ENV}"

The next version will include an easy way to set the root_path globally.

Sebastian
03cb7371db223067d0daab54e1f95cb2?d=identicon&s=25 Abdur-Rahman Advany (Guest)
on 2005-12-13 00:35
(Received via mailing list)
Hi,

What is that 'easy way', to what are you referring to in edgerails?
4bd34a2216dc8bdbf1f017f64e4d59e8?d=identicon&s=25 Kyle Maxwell (Guest)
on 2005-12-13 00:41
(Received via mailing list)
file_column is a third-party plugin, so edgerails hash nothing to do
with it.  You might find the changes in the file_column trunk at
http://opensvn.csie.org/rails_file_column/plugins/...,
or they might not be there yet.
648d60296e65a1278017c0b9f960ec3a?d=identicon&s=25 Oliver Barnes (Guest)
on 2005-12-13 01:59
(Received via mailing list)
thanks sebastian.

just curious also, is view magick processing going to be in the next
release?
This topic is locked and can not be replied to.