Ruby Javascript Generator Templates. Uses the file extension .rjs. Not related to r.js.
Questions tagged [rjs]
213 questions
0
votes
1 answer
unable to use `page.select` in render update inside controller
In my controller I am using render update,but I want to update only if div element if present.
In order to check if div element is present, I am using page.select but its not responding with anything,neither error or output,here is my code
def…

Lohith MV
- 3,798
- 11
- 31
- 44
-1
votes
1 answer
Rails not rendering partial(_new_multiple_choice.rjs)
#online_exam_controller
class OnlineExamController < ApplicationController
def index
@user=current_user
@employee=Employee.find_by_employee_number(@user.username)
# flash[:notice]="#{@employee.id}"
…

Kracekumar
- 19,457
- 10
- 47
- 56
-1
votes
2 answers
What's wrong with my Ruby on Rails code?
So I've been trying to add some AJAX to my home page with rjs and I get this javascript error in a popup window:
RJS error:
TypeError: Cannot call method 'getElementsByTagName' of null
Below is all of the relevant code.
Here's my code in…

Justin Meltzer
- 13,318
- 32
- 117
- 182