542 questions
First, check out the debugs for pry.[11]pry(#<BookController>)>a=Sentence.find_bybook_id:10 CACHE(0.0ms) SELECT sentences.* FROM sentences WHERE sentences. book_id =?LIMIT1 [[[...
When you deploy the Rails app you are currently developing to Heroku, $git push heroku masterThe following error occurs:remote:----->Ruby app detectedremote —----- > Compiling Ruby/Railsremote :...
I am currently creating an app for Rails.Below, I would like to sort by sign column minimum value → maximum value in the costs table, what should I do?The reason why I wanted to sort by sign column mi...
Ruby on Rails using nested_form, cocoon, etc. You are creating a one-to-many relationship model using accepts_nested_attributes_for.Use link_to_add_association on the one-to-many form to If you dynami...
I'm a beginner.If you want to display the results in view from the results obtained from the model, If the contents of the model become variable (the process of changing the model with connection each...
There are currently classes like this.class Hoge attr_accessor:fuga, :piyo def initialize data_create end def data_create data = various actions {...} # substitute for instance variable @fuga=data[:a]...
All errors are currently displayed in one place using errors.full_messages.each.I want this to appear in the display just above each column with an error, but I don't know how to do it.Could you pleas...
text_1='hoge'text_2 = 'hoge kakikakeko'text_3 = 'hoge'Expected value = > 'hoge'text_1='hoge'text_2 = 'hoge Ayeo Kakikakeko'text_3='hoge'Expected value = > 'hoge'Only the 前方forward match 」 I'd li...
This is a question about Rspec.I'm writing the code for the Rspec test to see if Ransack is working properly, but in the simulation section of the search execution, NoMethodError:undefined method `[]'...
If you have any advice on how to create a client application with a database using Ruby, could you please give me some advice?Rails server is present.This has already been created.We are planning to c...
« | - 9 - | » |
© 2024 OneMinuteCode. All rights reserved.