sinatra tag

7 questions


1 answers
128 views
0
When referring to DB during each do processing

I'm a beginner at Ruby.I am trying to reference DB in each do with the following logic:I try to get the record under where conditions by taking the value of the maxrating variable where the rating is ...

2 years ago

1 answers
109 views
0
Configuring Unicorn+nginx to Run Multiple Applications

I am publishing a site created by sinatra on unicorn+nginx, and I would like to add another site, but I don't know how to do it, so please let me know.Currently, it is as follows.(Excerpts only releva...

2 years ago

1 answers
88 views
0
I want to create a helper for use in sinatra's Template.

Image #helperview_helper do hoge(fuga)do US>#{fuga} endend#viewhoge('Bob') #This is BobI would like to use it like this, but what is the best way?I don't know how to make it in the first place.Please...

2 years ago

1 answers
101 views
0
I want to create a helper for use in sinatra's Template.

Image #helperview_helper do hoge(fuga)do US>#{fuga} endend#viewhoge('Bob') #This is BobI would like to use it like this, but what is the best way?I don't know how to make it in the first place.Please...

2 years ago

1 answers
80 views
0
Please tell me how to deploy the Sinatra app using MeCab to Heroku.

There was a similar question, but there was no answer, so I would like to ask you a question.As the title suggests, we are trying to deploy the Sinatra app using MeCab to Heroku.local PC:Mac OSX $hero...


1 answers
130 views
0
"database configuration does not specify adapter" when using mysql in sinatra

Let me ask you a question.I am having trouble understanding the error below.environmental framework:sinatraworking with:ActiverecordDB:mysql[database.yml]development: adapter —mysql2 database —sinatra...

2 years ago

1 answers
86 views
0
How to display what is entered in the text area on the results screen

I am using ERB, params.I am creating a submission form, but an error occurs when I display the submission contents.The syntax of the method to be printed is wrong, but I don't know how it is wrong.If ...

2 years ago

© 2024 OneMinuteCode. All rights reserved.