Can you show us an example with a post, including the erb? Specifically I am looking for taking some from data and inputting it into a db via sinatra-sequel. I am currently doing something like this:
post '/settings/keys' do
@keys = Keys
Keys.insert(:key => params[:key], :value => params[:value])
erb :settings_keys
end
Can you show us an example with a post, including the erb? Specifically I am looking for taking some from data and inputting it into a db via sinatra-sequel. I am currently doing something like this: