Search Results for "regexp-for-prices-or-how-to-detect-price-in-a-smart-way"

Forum Threads

Remember Me in Devise fails to Login User

2
Gems / Libraries
If I don't use `remember_me` option, it works perfectly fine. The app flows as expected. However, if I check `remember_me`, it will login in as expected, redirect me to a protected page, which wi...
Szedmák István replied

Rails for Beginners Part 19: Edit Password Discussion

15
General
Editing the password with an empty string (i.e. not filling the fields and clicking right away on the submit button) doesn't throw any error, Current.user.update(password_params) returns true and t...
Alex replied

Rails for Beginners Part 12: Validations Discussion

10
General
I tried copying this regex "\A[^@\s]+@[^@\s]+\z" to https://rubular.com/ but it aren't working until I remove the \A and \z making this [^@\s]+@[^@\s]+ before it could work, any reason for that?
Jerry Lupo replied

URI::InvalidComponentError (bad component(expected scheme component): : https):

0
Servers
First of all, this problem is a persistent, and I'm trying to solve it for a week with 0 progress.I'm working on a Ruby on Rails website and using Devise and Omniouth-<social media> for authe...

How can I use Rails Each Array and In-page search to show/hide div content

2
Rails
I'm trying to set up a simple search bar to show/hide content in my rails app. Specifically, trying to allow someone to search for a specific user via username in my chatroom which are being shown ...
Omar Khedr replied
Solved

Extend Sprockets to bundle mustache templates

3
Rails
I'm trying to include some Mustache templates into the main JS bundle. The idea is to take `/app/templates/*.mustache` files, generate a JSON object, and set a window-level variable, like this: ``...
Solved

Cloning nested fields by JS/coffeescript

0
Javascript
SImple app has a two models and does the function to add nested model fields dynamically through JavaScript. But this stuff does not working with the Turbolinks 5. How to refactoring this code by J...
Dmitrii Amelchenko posted

Stimulus JS Framework Introduction Discussion

27
General
I'm literally figuring out StimulusJS right now on an app, and I was hoping you would do a screencast on it soon and save me some time! Awesome timing :)
joelGarcia93 replied

Why You Should Focus On Writing Code With Clarity Discussion

4
General
Good article Chris, ruby has the clarity implied, programmers don't... however "ubiquitous language" is something that could help to programmers on this, thanks for share your thoughts!