railtie Questions

15

Solved

I was wondering how to add custom configuration variables to a Rails application and how to access them in the controller? Secondly, I was planning to have S3 support for uploads in my application,...
Ofori asked 20/9, 2009 at 4:17

2

Is there a way to disable a railtie that is loaded by a gem by default ? The developers of the gem did not make it modular and once putting the gem in the Gemfile, the require will automatically l...
Carbonyl asked 5/4, 2018 at 9:3

2

I have my own gem, and my railtie looks like... class MyRailtie < Rails::Railtie initializer "my_railtie.configure_rails_initialization" do # some initialization behavior end end and I'm t...
Overhasty asked 26/7, 2015 at 20:57

3

I have several mailer previews under spec/mailer/previews. On development I can view all the previews under /rails/mailers/. However by default this functionality does not exist on other environmen...
Buenabuenaventura asked 28/8, 2016 at 3:35

3

OS is Ubuntu 12.04, 64 bit. New to rails. Relatively new to Ruby. Following the ruby.railstutorial.org tutorial, chapter 3. The tutorial has been updated to use ruby 2.0.0 and Rails 4.0.0.rc1. P...
Tobietobin asked 28/5, 2013 at 0:27

2

Solved

I read a few documents on these arguments, but I did not understand clearly what they are, what are the differences between them and if one of them fits my needs. I need to write a piece of applica...
Schizogenesis asked 27/6, 2011 at 19:23

6

I am trying to upgrade to Rails 4.0.0, and I changed the gem versions of sass-rails and coffee-rails. I need to resolve this gem conflict between rails and coffee-rails before I can upgrade to Rail...
Veator asked 26/6, 2013 at 18:39

1

Solved

I'm trying to switch my app from Rails 3.2.13 to Rails 4. In doing so, I've hit one main snag -- I use the gem mobile_fu in order to determine if users are coming from a mobile device. That gem req...
Liverpool asked 7/1, 2014 at 17:54

1

Solved

I am developing a gem for my Rails application, which be loaded into it through Railtie. I'm basically inserting models into into, plus libraries and a few initializers, in the old Rails app style....

1

While crafting the Passenger-Monit plugin, I thought that it'll be most appropriate to use the initializer, i.e. module PassengerMonit class Railtie < Rails::Railtie initializer "my_plugin.s...
Centipede asked 2/5, 2011 at 11:32

1

Solved

I recently switched from the gem version of resources_controller to a plugin as the gem version relied on git. Inside the vendor/plugins/plugin/lib/plugin.rb file, the Railtie is as follows: mod...

2

Solved

I could really use another set of eyes on this so I thought I would post it here. A while ago I wrote a basic ActiveRecord Extension for my own educational purposes. I've been reading about Railtie...
Saba asked 13/9, 2010 at 16:40
1

© 2022 - 2024 — McMap. All rights reserved.