Ruby on Rails Community Forum
Forum Series episodes ... no method error: undefined method
0
Rails
I've been following along the Forum series of episodes, when I try to submit a forum post, I get an error. It seems that the controller has trouble assigning the user id to the current user. I thou...
Miguel posted
Do I have to publish the source code of a commercial app if I use a GPL licensed gem like prawn?
1
General
Hey Guys,
do I have to publish the source code of a commercial app if I use a GPL licensed gem like prawn?
Cheers,
Drilon
Chris Oliver replied
Solved
Add Students to a class in a HABTM relationship !
0
Rails
I have an app designed that I have classrooms and I want to "enroll" students in the class en mass. For example I want to be able to search by name and either add by an enroll or add button or a c...
John Sanderbeck posted
Finding Users in Group Chat Go Rails Class
1
Rails
Hi guys,
I went through Chris's Go Rails course on Group Chat with Action Cable and learned loads from it. One of the things that I need some help with though is being able to find all the chatroo...
Omar Khedr replied
Solved
Extending Rails flash
2
Rails
I have in *app/lib/action_dispatch/flash/flash_hash.rb* file this code:
class ActionDispatch::Flash::FlashHash
def my_method
#...
end
end
but when I call it in control...
Chris Oliver replied
Hatch: Deploying my first App
7
Servers
Hey Chris,
I was playing around with Hatch last night and it's really cool, awesome work! I am having a little drouble deploying though.
I'm getting this
> Git clone failed
>
> This ...
Chris Oliver replied
Solved
Multiple Devise Users sharing a dashboard
2
Rails
Hi,
I have currently two Devise models Company and Contractor.
When they sign in I want to redirect them to a dashboard page. At the moment I have a before_action on the dashboard controller that...
Stephen Sizer replied
Devise - logging on with something other than email
7
Gems / Libraries
I have followed the instructions on this page https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-sign-in-with-something-other-than-their-email-address to allow signing in with some...
Chris Oliver replied
Solved
Two Forms/Two Controllers/One Page: Passing Instance Variables, Routing, and Error Handling
2
Rails
So... I'm having a higher level conceptual gap on how to deal with a scenario in which a form errs out on a page that has two forms relating to two different controllers.
My first knowledge gap...
Michael Becco replied
Nested attributes
4
Rails
Hi All,
I'm working with nested forms and I'm stuck trying to create the two models and the controller to handle this association.
My models following this structure:
Survey -> recipients <...
Giancarlo Corzo replied
Solved
Email Stripe Receipts
1
Rails
Firstly, thanks for the great Stripe tutorials! I just finished implimenting basic subscriptions on my rails app. However, I do have a few questions regarding emails.
**Will Stripe automatically e...
Chris Oliver replied
Solved
Styles not rendering
5
CSS
Hey guys,
So I'm following [a tutorial](https://www.youtube.com/watch?v=70Pu_28yvdI&t=4025s), and around the 1 hr mark, he starts adding the styles. When I tried to reproduce it, it would not...
Miguel replied
Solved
Access Rails constants from Webpack-managed JS
1
Rails
I'm just starting to use Webpack with Rails, and have a question. Let say there is a constant defined in Rails application. What could be a proper way to access this constant from JavaScript? Assum...
Chris Oliver replied
Solved
Colorbox & Turbolinks load
0
Javascript
Hello,
Rails 5.1.0 & Turbolinks5 & Jquery3.1.2 here
I'm trying to make jQuery Colorbox works with dynamicly loaded elements (using ActionCable) with no luck.
With the implementation belo...
Thomas M posted
3rd party integrations using Oauth/omniauth
2
Rails
When creating a facebook login, you put `user = User.from_omniauth(env["omniauth.auth"])` inside `sessions_controller.rb` , so when a user goes to /auth/facebook it will prompt them to login via fa...
Masud Hossain replied
Solved
How do I import a Sass library from within a "node_module" (Rails 5.1)?
11
Rails
Pretty much the question above!
I have a Rails 5.1 app with webpacker installed, and I used npm to install a front end framework:
`npm install bulma --save`
Now that it is inside of `node_module...
Ryan Martin replied
Solved
How do I Geocode location with either address or Lat / long
2
Rails
I'm building a portfolio app where a user can share all of the locations that they like to work from. A location can be a home, office, coffee shop, park or some random place in the wilderness. Giv...
Chris Oliver replied
Solved
How to use In-App Notifications as an activity feed?
6
Rails
I worked through https://gorails.com/episodes/improving-in-app-notifications yesterday and it works great.
I tried to use this same system create activity feeds for my different models, but ran in...
Abhinay kumar replied
Solved
Dynamic select boxes - like railscast 88 - but it ain't working
4
Rails
I am trying to scope a form selection list to from another select box selection. The select box groups the options correctly in the dropdown. Everything checks out in the console but it still does ...
Aaron Taddiken replied
How to i implement adobe e sign in rails 5?
2
Rails
Echochamber is not up to date and also not working , i have found the working python app, should i use python to process the document , help me guys.
naveen kumar replied