erb tag

6 questions


1 answers
74 views
0
<%=if%> of erb does not work properly in render partial in ruby on rails actioncable

Currently, we are creating dynamic chat using actioncable on ruby on rails.The chat function is not sufficient, but the function is almost complete.When you think of sending messages like LINE and rec...

1 years ago

1 answers
58 views
0
Unable to comment out erb file in VScode

While editing an erb file using VScode, the comment out shortcut Press cmd+/ to get // and cannot comment out.Is this because the erb file is identified with the html file?The settings.json file looks...


2 answers
124 views
0
I want to use the variables and functions of rails in javascript using erb.

Cannot access rails functions or variables in app/assets/javascripts/*.js.coffee.erb.I get scolded for undefined local variable or method.Specifically, I would like to access the param variable of GET...

1 years ago

1 answers
76 views
0
Using smartparens and web-mode at the same time will complement one extra >

I am using Emacs 24.4.Using smartparens and web-mode at the same time may complement one more > when handling erb files.Specifically, <%= complements one more > as in %>>.It seems that ...

1 years ago

1 answers
54 views
0
How to take out the value of the hash obtained by the controller of reails in view and display it

The DB contains data such as {params:{name:apple, color:red}.Regarding this, I would like to know how to get hash values such as apple and red on the views of rails.Since the data is probably in json ...


1 answers
73 views
0
I want to nest elements into the rails link_to.

<%=link_to link, {:controller=>:hoge_controller,:action=>:hoge_action}, class: hoge_class%>↓<%=link_to{:controller=>:hoge_controller,:action=>:hoge_action}, class:hoge_class do%&g...

1 years ago

© 2024 OneMinuteCode. All rights reserved.