Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Passing a hash of ids to View #411

Copy link
Copy link
Open
@fmoudoute

Description

@fmoudoute
Issue body actions

I am adding some filtering in get_raw_records, and when the data are refreshed via AJAX, i would like to also pass a hash back to the view. Is there a simple way to do that ? Should i be doing that at the get_raw_records level of in the js.coffee ?

def get_raw_records
  query = Book.where(user_id: user.id)
  query = query.where(subject: params[:subject_id]) if params[:subject_id].present?
  query
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.