1

When I'm using this URL :

http://localhost:3000/case/index?id=14

I can access the ID using params[:id]

But when the URL is:

http://localhost:3000/case/index#tabs-1?id=14

The ID value is not accessible using params[:id]

Its because of #tabs-1. Is there any alternative of doing it?

1 Answer 1

1

Use this instead:

http://localhost:3000/case/index?id=14#tabs-1

The querystring should be immediately after the path.

Sign up to request clarification or add additional context in comments.

1 Comment

Using #tabs-1 after query string fixes the problem ... Thanks for quick reply.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.