No results found in makandra dev.
Best results in other decks
...commit Save movie Now change your MoviesController#create method so it prints out the params that Rails sees. For this we comment out the code that was creating the movie...
...and render the params object: def create # @movie = Movie.new # @movie.attributes = params[:movie] # if @movie.save # redirect_to @movie # else # render 'new' # end render plain: params.inspect end Note that #inspect returns a...
...api.random.org/json-rpc/4/invoke', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ jsonrpc: '4.0', method: 'generateIntegers', params: { apiKey: ..., // other params described in the API documentation such as "n", "min" and "max" } })