sinatra tag

7 questions


1 answers
115 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 ...

1 years ago

1 answers
98 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...

1 years ago

1 answers
81 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...

1 years ago

1 answers
87 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...

1 years ago

1 answers
69 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
114 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...

1 years ago

1 answers
78 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 ...

1 years ago

© 2024 OneMinuteCode. All rights reserved.