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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:19:52+00:00 2026-05-18T09:19:52+00:00

And it is being accessed via js. I have my respond_to :html, :js line

  • 0

And it is being accessed via js.

I have my “respond_to :html, :js” line in my controller.

However, in my update action:

if @permission.update_attributes(params[:permission])
  respond_with [@brand,@permission]
end

Tries to go to the “show” method. When I just have:

@permission.update_attributes(params[:permission])

Then my update.js.erb is accessed appropriately.

I don’t understand the deal here, can anyone help? I feel like I should have that “respond_with” line in there, though I don’t really know why if it is working.

  • 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-18T09:19:52+00:00Added an answer on May 18, 2026 at 9:19 am

    You want to do:

    def update
        @brand = ....
        @permission = ....
        @permission.update_attributes(params[:permission])
        respond_with [@brand, @permission]
    end
    

    Read more here.

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

Sidebar

Related Questions

I have a php api that is being accessed via Flash. It grabs some
I have a custom Attached Property but the Accessors on never being accessed on
I have a Rails application accessed via a mobile App - and the data
I want to know if the page is being accessed via http or https
I have a List object being accessed by multiple threads. There is mostly one
Is there any standard way of debugging Javascript on a webpage that's being accessed
I want to use performance monitors to determine when a file is being accessed
I am creating an MVC Intranet app with windows authentication. The data being accessed
Foo and Bar are both Beans. If FooResource is accessed via /foo/{id} and BarResource
Is there any way to check id a file is being accessed or modified

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.