正规365体育投注

Dark mode beta

You’ve been asking for dark mode for years.
The is finally here.

Change your preferences正规365体育投注 any time.

Questions tagged [ruby-on-rails]

Ruby on Rails is an open source full-stack web application framework written in Ruby. It follows the popular MVC framework model and is known for its "convention over configuration" approach to application development.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

HAML ActionView::Template::Error SyntaxError: stdin missing indentation

I'm really stuck. I had some code which used to work, but does not on my new branch. I am getting ActionView::Template::Error (SyntaxError: [stdin]:79:1: missing indentation): 1: !!! html 2:...
0
votes
0answers
7 views

Devise after sign up path with an additional reddirect

After user registration, user lands on after_sign_up_path_for(resource) in RegistrationsController. This path leads user to screen that needs to be shown. If invited in a group, the user will after ...
0
votes
0answers
7 views

How do you debug Paste on Windows?

We have a input type="search" field on our website that accepts a string of pasted emails from a Mac in all browsers tested (Safari, Brave, Chrome, Firefox, Edge) but will not accept string of email ...
0
votes
0answers
7 views

Speeding up searching through large json array (for jQuery/Rails autocomplete text box)

I have a location text field hooked up to the jquery plugin EasyAutocomplete: It's working, but the problem is the dataset is large - 100,000 records or so. It takes an unacceptably long time to ...
0
votes
0answers
7 views

Rspec expect specific record instance to receive

I have a Rails model User with an attribute age. I want to test that some code alerts any users who are over 25. I have this test writen: it 'sends an alert to users over 25' do ...
0
votes
0answers
7 views

Rails 6 and React app only showing JSON data, not React component with webpack-dev-server

I'm building a Rails 6 app using the installed webpacker and using React as my JS framework for front end. I followed the instructions to install React but when I go to my root page, it only shows ...
0
votes
0answers
8 views

Rails AJAX rendering error ActionView::Template::Error (undefined local variable or method 'object')

I am creating a search bar for some objects which are called notification groups using ajax. When I attempt to search for objects using ajax I get the following error in my console: ActionView::...
0
votes
0answers
5 views

Rails - configure separate log file for debug, info, and errors

Right now, I have my config.loger level set to :debug, defined in the config/environnments/production.rb file. However, this makes errors really hard trying to trace because of the amount of traffic ...
0
votes
1answer
19 views

How to respond to a fetch(post) with js.erb?

I am trying to make a post request that'll grab all events(Jams) and update dynamically the page via ajax. So my controller recieves params in JSON format and I'd like to respond with js just like how ...
0
votes
1answer
24 views

bug when i input value “45” i get “0.45e2” ruby on rails

i cant understand why when i input 45 i get 0.45e2 while any sting like pants work fine i have the following html <%= form_with(model: invoice, local: true) do |form| %> <% if invoice....
0
votes
0answers
4 views

【carrierwave+ffmpeg】can't upload the video with sound

I want to make "Fake Instagram" Rails application. then I made the uploader and I can upload the video(mp4), but no sound. I can listen to the sound on my desktop but can't on my application, like ...
0
votes
0answers
9 views

Is there a way to fetch at least N number of records from a Sunspot Solr Query?

I am trying to fetch minimum 3 records for a certain model. The problem I am facing right now is, there is full_text matching involved as well. It works fine when I pass a keyword 'Hello' to the query....
0
votes
1answer
24 views

Unable to render response in html format

I am facing trouble displaying an Html document as a response to my rails API. The Html string is displayed as plain text, it seems like the tags are getting escaped even though I have used html_safe. ...
0
votes
1answer
18 views

How to add a color picker in a rails form

I'm building a rails app and want the user to be able to choose a color at some point. To do this, I tried to implement a color picker in my form with the 'jquery-minicolors-rails' gem. This question:...
0
votes
0answers
7 views

Reload window on every jasmine spec in teaspoon

Using teaspoon and jasmine to test some JS. The js is putting things in 'window'. Is there a way to completely reload the page for every spec so that this 'window' is newly initialized.

15 30 50 per page
1
2 3 4 5
21075