Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5840513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:45:26+00:00 2026-05-22T11:45:26+00:00

In our company, people are using different operating systems. I am using Linux and

  • 0

In our company, people are using different operating systems. I am using Linux and have line in development.rb like:

Paperclip.options[:command_path] = "/usr/bin"

Designer, who is on Windows need different line. Is there any way, how to manage different developers in ruby on rails? Thanks a lot!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T11:45:27+00:00Added an answer on May 22, 2026 at 11:45 am

    If it’s just a platform issue, try something like this:

    if RUBY_PLATFORM =~ /mswin/
      Paperclip.options[:command_path] = 'c://ruby/bin'
    else
      Paperclip.options[:command_path] = '/usr/bin'
    end
    

    A good way to keep machine-specific settings is with a configuration file.
    Treat the settings.yml like database.yml and copy the example to settings.yml on each user’s machine.

    # .gitignore
    config/settings.yml
    
    # config/settings.yml.example
    paperclip_command_path: /usr/bin
    some_api_key: put_key_here
    
    # config/initializers/load_settings.rb
    filename = File.join(File.dirname(__FILE__), '..', 'settings.yml')
    if File.file?(filename)
      APP_CONFIG = YAML::load_file(filename)
      APP_CONFIG.each do |k, v|
        v.symbolize_keys! if v.respond_to?(:symbolize_keys!)
      end
    end
    

    This way you could set the above like this:

    Paperclip.options[:command_path] = APP_CONFIG[:paperclip_command_path]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In our company we have started using VS 2010 to model our systems, in
We have around 3 people working on a project in TFS. Our company set
So we have recently started developing applications for the iPad for our company. Unfortunately
In our company, just until recently, we were not using namespaces because some compilers
I'll try to describe the real situation. In our company we have a reservation
Our company is setting up another development station for the same app that will
Big picture: I have been asked to create a search engine for our company's
I'm making a checklist for people to do tasks on our company website. The
Our company is currently writing a GUI automation testing tool for compact framework applications.
Our company is sending out a lot of emails per day and planning to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.