Skip to content

How to call a custom action? #1

@Shigawire

Description

@Shigawire

In your backend code you provided the possibility to call custom actions additionally to the RESTful ones.

Let's assume I have the following code in my controller:

def start
 broadcast do
  @server = Server.find(params[:id]).start()
 end
end

How would I call the start action from this client side?

Good work by the way! I really enjoy not having to take care of the data being pulled into the frontend.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions