;-)

I understand convention over configuration not the same as you do: you do 
not need to configure if your are fine with the convention, but you can, if 
you want or must. Like in ActiveRecord, when the table names can be derived 
from the class names but can also be declared, when you have a legacy db.

Am Dienstag, 11. Februar 2014 19:52:15 UTC+1 schrieb Andrew Kaspick:
>
> You're contradicting yourself.  The /tmp folder is 100% convention and 0% 
> configuration.  Therefore it's all convention over configuration. :)
>
>
>
> On Tue, Feb 11, 2014 at 1:11 PM, Thomas V. Worm <[email protected] <javascript:>
> > wrote:
>
>> Hi,
>>
>> I started to write a tiny rails app which comes completely as a ruby gem. 
>> Since this app has a big cousin in rails I did not want to use another 
>> framework like sinatra.
>>
>> Since the app is a gem, I do not want it to store runtime-files in the 
>> tmp-folder. So I thought I should not stay with the convention but 
>> configure the location of the tmp-folder. But as far as I can see, there is 
>> no way to configure it.
>>
>> I searched the source code and found lines like this one:
>>
>> ./railties/lib/rails/application/configuration.rb:        
>> @cache_store                   = [ :file_store, "#{root}/tmp/cache/" ]
>>
>> As one can see, the tmp-folder does not follow convention over 
>> configuration but is hard coded.
>>
>> So what about adding a configuration option? I am using Rails 4.1.
>>
>> Regards
>> Thomas
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Ruby on Rails: Core" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to 
>> [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/rubyonrails-core.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to