Skip to content

Instantly share code, notes, and snippets.

@abhianair
Created November 23, 2018 05:06
Show Gist options
  • Select an option

  • Save abhianair/c3c0098f4815d8e23aa46d7f6d41bc69 to your computer and use it in GitHub Desktop.

Select an option

Save abhianair/c3c0098f4815d8e23aa46d7f6d41bc69 to your computer and use it in GitHub Desktop.
split array
@day = BusinessProfile.where(:user_id => current_user).pluck(:days)
@days = @day.first
@days = @days.split(',')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment