You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm just learn ruby and want to try integrate firebase with my api using this package. When I tried to make a post request to my create api, I got this error message:
`NameError (uninitialized constant ChatsController::Firebase
Looks like something is wrong with the package maybe? Here is my api code looks like : def create base_uri = <my firebase url> firebase = Firebase::Client.new(base_uri) response = firebase.push("messages", { :message_text => params[:message_text], :time => Firebase::ServerValue::TIMESTAMP, :username => params[:username] }) end
The text was updated successfully, but these errors were encountered:
Hello, I'm just learn ruby and want to try integrate firebase with my api using this package. When I tried to make a post request to my create api, I got this error message:
`NameError (uninitialized constant ChatsController::Firebase
Looks like something is wrong with the package maybe? Here is my api code looks like :
def create base_uri = <my firebase url> firebase = Firebase::Client.new(base_uri) response = firebase.push("messages", { :message_text => params[:message_text], :time => Firebase::ServerValue::TIMESTAMP, :username => params[:username] }) end
The text was updated successfully, but these errors were encountered: