Fugee Ohu

Joined

200 Experience
0 Lessons Completed
0 Questions Solved

Activity

Just upgraded my rails app to rails 6 so decided to switch to actiontext and looking for how to migrate my data from ckeditor to actiontext

Posted in How do I add a favicon in rails 6 through packs

How do I add a favicon in rails 6 through packs

Posted in rails 6 favicon.ico Webpacker can't find favicon.ico

app/javascripts/packs/application.js:
import "favicons"

app/javascripts/packs/favicons.js:
const faviconsContext = require.context(
‘!!file-loader?name=../images/favicons/[name].[ext]!.’,
true,
/.(svg|png|ico|xml|json)$/
);faviconsContext.keys().forEach(faviconsContext);

Posted in form using form_with not loading

127.0.0.1 - - [30/Nov/2019:19:55:21 EST] "GET /items/new?utf8=%E2%9C%93&item%5Bitem_type_id%5D=9&commit=New+item HTTP/1.1" 200 1758
http://localhost:3000/items -> /items/new?utf8=%E2%9C%93&item%5Bitem_type_id%5D=9&commit=New+item

<%= form_with(model: @item, url: new_item_path(@item), method: "get") do |f| %>

 <div class="field">
     <%= f.select :item_type_id, nested_set_options(ItemType.all, @item_type) {|i| "#{'-' * i.level} #{i.name}" }, {:include_blank => "Select"}%>
 </div>

<div class="actions">
    <%= f.submit "New item" %>
</div>

<% end %>

logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.