creating multiple input fields in rails
<% (1..18).each do %> <%= input type="number" style="width: 8px" %> <% end %>
lucywilson posted • Solved<% (1..18).each do %> <%= input type="number" style="width: 8px" %> <% end %>
lucywilson posted • SolvedIssue solved. `create_table :ways, id: false do |t|` `ways` must have `id` `create_table :ways do |t|`
Jack replied • SolvedWhat does `Rails.cache.class` return? There are different [caching backends](https://guides.rubyonrails.org/caching_with_rails.html#cache-stores). If you're using [NullStore](https://api.rubyonrai...
Jesus Castello repliedI didn't realize I could access `conversation.recipient` and `conversation.sender` so easily, going to try to model it as you suggested above Casey :thumbs_up:
Taylor Cooney replied • SolvedCan you try changing the order of your `has_many`? **Like this**: ```ruby has_many :item_linkers, inverse_of: :item has_many :recipes, through: :item_linkers ``` **Instead of**: ```ruby has_man...
Jesus Castello repliedin ProductsControler Change ``` show @contact = :set_contact end ``` to ``` show @contact = set_contact end ``` juste delete :
Anthony BESSON replied • SolvedI'm building a platform where Users belong to Teams, and I want whoever creates a team to: a) Be added as a team member, potentially with a particular status ("team_owner") b) Be able to send inv...
David Oudiette postedAh you already fixed it! :D
Chris Oliver replied • SolvedAh yeah, you would need that if you're on Heroku. I use NGINX on my own server which automatically serves static files, so that would make sense. Hah!
Chris Oliver repliedHow to integrate NTLM Authenticate to Microsoft's Active Directory ?
Viral Mistry postedI'm wondering how to add an image to a prawn pdf from active storage. I've tried a number of ways and can't seem to get it to render. Thanks in advance, Steve
Stephen Sizer postedYou could try using `render_to_string` & save the rendered view in your database, then when you need to show this report you can `render :html` that. Just an idea, not tested :)
Jesus Castello repliedHi there! I've a view that needs to generate a form table, based on clients and days. For 7 days it creates View (i've tried to do <%= form_for @effort, data: {remote: true} do |f| %> ...
kriera postedHello! I'm trying to also get jQuery to work in a `create.js.erb` file. Would I still need to add the code snippet you provided above if I have this in my `environment.js`: ```javascript const { e...
Steven Torrence replied • SolvedI change the rails timezone config/timezone then config.time_zone = 'West Central Africa' the restart server it's done.
ramzieus replied • SolvedHello, I am using postgres as database, rails 5.0 and ruby 2.4. The problem is, that I have this pur html calendar unsing timeline and timegrid, works ok, when I pass it to my RoR project, only wor...
erniux third postedTrying to submit a form that has a create action in another controller but does not redirect to or render the page (just stay on the page). Error: ``` MessagesController#create is missing a templa...
BrandonKlotz postedThanks for sending that over 👍 That's an even cleaner solution. Ok, so now my code looks like the following: **routes.rb**: ``` namespace :books do resource :google_book, only: [:create] end ...
Nino Rosella replied • Solvedumm that seems like a separate app. which means you would have to use rails as api and have the vue app call those rails api
Tabish Iqbal repliedI think that you can do it from the html_options = {} [ApiDock](https://apidock.com/rails/ActionView/Helpers/DateHelper/datetime_select)
ramzieus replied