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 9190029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:22:07+00:00 2026-06-17T20:22:07+00:00

My app runs on two different database, and I use the application logic to

  • 0

My app runs on two different database, and I use the application logic to work on them.

I have the User model on an external db and I only records the id on my default_role class.

So in the index template I fetch the accounts from remote, and for each of them I have to query my table to print some immutable information and I want to give the possibility to change role in my table

Index information = remote tables information (name surname ecc) + my table information (role)

Using best_in_place to edit the role_id field of my users.

The problem is my index cycle @operators which comes from outside buy I need to change role which is on my side!

- @operators.each do |ope|   #cycle users
      %tr
        %td
          - user = User.find_by_bay_id(ope.account_id)
          - df = DefaultRole.find_by_operator_id(user.id)
          = best_in_place [:admin, df], :role_id, :type => :select, :collection => [[1, 'admin'], [2, 'coordinator'], [3, 'operator'], [4, 'base']]

and my update in controller:

respond_to :html, :json

def index
  @operators = some logic from model where I get all the users
end

def update
  @df = DefaultRole.find(params[:id])
  @df.update_attributes(params[:default_role])
  respond_with [:admin, @df]
end

But it didn’t even call my update method in the controller.
It normally checks the collection tag, allows me to change it but it doesn’t allow me to submit.

What am I doing wrong?

EDIT

My browser doesn’t catch any request.

  • 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-06-17T20:22:08+00:00Added an answer on June 17, 2026 at 8:22 pm

    I finally found the error.

    https://github.com/bernat/best_in_place/issues/217

    It was a Jquery issue on that version of best_in_place. Running:

    bundle update

    and restarting the server solve the problem, thanks everyone

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have an app deployed on Heroku which runs on two web dynos
In my application I have two places where the user needs to select a
We have two different applications in our network, both use Kerberos to authenticate users.
Because my app is multi-threaded I use two NSManagedObjectContexts. The main context, that runs
I have an app that I want to be able to build two different
I have written two simple Java classes (one of them containing main(), and the
I was googling for can I make an app that runs the two cameras
I have two apps. which current run in two different ports. script1.js: var express
If I have two different threads via GCD accessing an NSMutableArray and one is
We have an application which is built on JSF 2.0(MyFaces) and runs on Weblogic

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.