Check out my latest project called Rails UI 🎨

October 8, 2020

2 responses

Let's build for Ruby and Rails developers - Part 10

In part 10 of my Let's build for Ruby and Rails developers series I begin adding new job details fields on our new job form.

Much of the work in this part is foundational to get the necessary data from a given employer to the app itself. We'll add fields related to the job in this part and continue adding more fields related to the company in part 11.

This entire form is built with Vue.js which I'll use AJAX to push new data to the Ruby on Rails app behind the scenes.

The series so far

Leave a reply

Sign in or Sign up to leave a response.

2 responses

Icons/link diagonal

Awesome work Andy 👍🏽😀

I'm working on a project where i have this rails view

 <% if current_user.companies.exists? %>
  <%= form.collection_select :company_id, current_user.companies.all, :id, :name, prompt: "Select a Company for this job", required: 'required', class: "select" %>   
<% else %>
  <%= link_to "Choose a company", new_company_path %>
<% end %>

And I want to run it inside Vue component. I have tried different ways to run ERB code inside Vue but never worked for me.
Is it possible to do such a thing?


This comment was marked for spam

Est. reading time: 1 minutes
Stats: 372 views



Part of the Let's Build for Ruby and Rails Developers collection