Oliver Barnes
2005-Dec-02 21:30 UTC
url_for_file_column outputting "/development" in the url
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
Oliver Barnes
2005-Dec-04 15:18 UTC
Re: url_for_file_column outputting "/development" in the url
anyone? 2005/12/2, Oliver Barnes <ol1barn3s-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> > 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 >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Sebastian Kanthak
2005-Dec-04 17:03 UTC
Re: url_for_file_column outputting "/development" in the url
On 12/2/05, Oliver Barnes <ol1barn3s-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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)huh, strage. That shouldn''t happen. What does <%@product.picture_relative_path %> produce? Sebastian
Oliver Barnes
2005-Dec-05 19:49 UTC
Re: url_for_file_column outputting "/development" in the url
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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> On 12/2/05, Oliver Barnes <ol1barn3s-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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) > > huh, strage. That shouldn''t happen. What does <%> @product.picture_relative_path %> produce? > > Sebastian > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
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 > OliverI 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. -- Posted via http://www.ruby-forum.com/.
Oliver Barnes
2005-Dec-05 22:17 UTC
Re: Re: url_for_file_column outputting "/development" in the url
go figure... you using kyle''s branch? how is it working for you? 2005/12/5, aroth <adam-MlVGk6iw+mI@public.gmane.org>:> 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. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Sebastian Kanthak
2005-Dec-06 23:19 UTC
Re: Re: url_for_file_column outputting "/development" in the url
On 12/5/05, aroth <adam-MlVGk6iw+mI@public.gmane.org> wrote:> 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) > 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
Oliver Barnes
2005-Dec-08 12:03 UTC
Re: Re: url_for_file_column outputting "/development" in the url
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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> On 12/5/05, aroth <adam-MlVGk6iw+mI@public.gmane.org> wrote: > > 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) > > 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 > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Kyle Maxwell
2005-Dec-08 19:06 UTC
Re: Re: url_for_file_column outputting "/development" in the url
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 On 12/8/05, Oliver Barnes <ol1barn3s-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > > On 12/5/05, aroth <adam-MlVGk6iw+mI@public.gmane.org> wrote: > > > 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) > > > 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 > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Oliver Barnes
2005-Dec-12 02:30 UTC
Re: Re: url_for_file_column outputting "/development" in the url
that´d be great. but so, is this not going to make it into the next main release? 2005/12/8, Kyle Maxwell <kyle-FOSOgQihYpQjo0HpFSRKWA@public.gmane.org>:> > 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 > > On 12/8/05, Oliver Barnes <ol1barn3s-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > 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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > > > On 12/5/05, aroth <adam-MlVGk6iw+mI@public.gmane.org> wrote: > > > > 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) > > > > 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 > > > _______________________________________________ > > > Rails mailing list > > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Sebastian Kanthak
2005-Dec-12 23:17 UTC
Re: Re: url_for_file_column outputting "/development" in the url
On 12/12/05, Oliver Barnes <ol1barn3s-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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
Abdur-Rahman Advany
2005-Dec-12 23:34 UTC
Re: Re: url_for_file_column outputting "/development" in the url
Hi, What is that ''easy way'', to what are you referring to in edgerails? Sebastian Kanthak wrote:>On 12/12/05, Oliver Barnes <ol1barn3s-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails > > >
Kyle Maxwell
2005-Dec-12 23:38 UTC
Re: Re: url_for_file_column outputting "/development" in the url
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/file_column/trunk/, or they might not be there yet. On 12/12/05, Abdur-Rahman Advany <rails-U5wbzIpkoVrQT0dZR+AlfA@public.gmane.org> wrote:> Hi, > > What is that ''easy way'', to what are you referring to in edgerails? > > > Sebastian Kanthak wrote: > > >On 12/12/05, Oliver Barnes <ol1barn3s-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 > >_______________________________________________ > >Rails mailing list > >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Oliver Barnes
2005-Dec-13 00:58 UTC
Re: Re: url_for_file_column outputting "/development" in the url
thanks sebastian. just curious also, is view magick processing going to be in the next release?> 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 > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >