Questions tagged [react-on-rails]
112 questions
0
votes
1 answer
Ruby on Rails with React getting NoMethodError
The following is my controller Projects#show method.
def show
@project = Project.find(params[:id])
@pm = User.find(@project.user_id)
@employees = {}
@supervisors = User.all.where("id = ?", Relationship.all.where("supervisor_id = ?",…

Billy Ferguson
- 1,429
- 11
- 23
0
votes
1 answer
Child component rerenders but parent component does not
I have two components , each connected via containers, and both having props mapped via the provided state.
There is one action which results in the child component rerendering while its parent does not. I don't understand how this is possible.
I'm…

Micah Alcorn
- 2,363
- 2
- 22
- 45
0
votes
0 answers
How do I fix this webpack deploy error on heroku?
When trying to deploy a react_on_rails app to heroku. I get a series of the following errors. Everything works fine locally, however when I try to deploy to heroku I get:
ERROR in ./app/bundles/appbundle/startup/MyApp.jsx
remote: Module not…

Riina
- 530
- 1
- 7
- 19
0
votes
0 answers
Error when deploying my react-on-rails application in production
I have installed nam and nodes on our production environment (Ubuntu 14.04.3 LTS), and now trying to deploy a rails app which is using the gem react-on-rails to implement Redux / ReactJS. Everything is working fine in development environment but i…

Typpex
- 488
- 4
- 11
0
votes
1 answer
Using react_on_rails how can I remount components similar to ReactRailsUJS.mountComponents
In a react rails project I have converted over from react-rails gem to react_on_rails. Some of the components which are shown in an infinite scroll are re-mounted when they scroll in with ReactRailsUJS.mountComponents. How can I remount the…

svnm
- 22,878
- 21
- 90
- 105
-1
votes
1 answer
Is there a way to change a view using React State?
I've been trying to work my way around this matter for a long time now and it seems I can't find a solution.
For a couple of circumstances the project I'm working with can't use React-Router on Rails, but I heard there's a way to switch between…

Andrew Sunset
- 39
- 2
- 12
-3
votes
1 answer
Ruby code adding single \ to escape #, instead of adding \\
ruby adding single \ to escape # instead of double backslash
for example, the # in string sd@# is preceded with single \ like this sd@\# automatically. I think it should add \\ (double backslash) to escape #.
Is it a bug in ruby syntax? if not is…

Benison
- 157
- 1
- 2
- 17