Rails
Ruby on Rails (Rails) is a web application framework written in Ruby. It is meant to help simplify the building of complex websites.
Here are 7,575 public repositories matching this topic...
Devise.config.send_email_changed_notification sending "Emailed Changed" email when user signs up
Environment
- Ruby 2.4.5
- Rails 4.2.11
- Devise 4.6.1
Current behavior
Devise is sending the "Email Changed" email when a user first signs up. This email is unnecessary because they haven't confirmed this email yet.
GIF showing both "confirmation" email AND "email changed" email.
 cannot access admin panel.
Describe the solution you'd like
Clear, comprehensive Spree extension documentat
I wanted to ask if a migration guide was created for going from a 1.4.3 version to a 2.x version? If there is no migration guide, what non-passive changes were introduced that caused the 2.x version bump?
We've received a good amount of feedback for formatting values instantiated within the page_entries_info method. Currently we don't have a concrete interface for the method and Kaminari users need to implement a decorator that's not intuitive. It would be helpful if the method sends a certain sed of messages to the collection object. I'm not sure what the interface should look like, but here i
-
Updated
Jun 4, 2020 - Ruby
I have searched the issue list for something similar, but I have not found the exact same issue.
The problem is that, given these two models:
factory :employee do
# various attributes
end
factory :job do
association :employee, strategy: :build
endattributes_for ignores any explicit employee assignments:
attributes_for(:job, employee: some_other_emIs there anyway we can use your icons in a SASS or SCSS document as background images? If this is possible, what would be a general guideline for setting up something like this?
Thanks
I'm sorry to post an issue that is missing crucial evidence, but some debugging of a recent config loading bug makes me suspect that the react-rails railtie.rb may be modifying the load order of initializers, and preventing the values in Rails.application.config being as expected.
Whether this happens or not appears to be partly dependent on where in the Gemfile the react-rails gem is l
I noticed there's no mention of #html_safe in views and helpers. I've found this to be a commonly misused/misunderstood part of Rails, but I'm not sure if it should be considered as 'style'. Any thoughts?
The email address provided in the "Commercial Uses" section in LICENSE.md is invalid. Emails send to that address return with "User unknown" notice.
Description
The documentation on Error Handling indicates there should be a stack trace, but stack traces are no longer returned.
Steps to Reproduce the Problem
buffalo new cokecd cokebuffalo dev &curl -H 'Content-Type: application/json' 'http://localhost:3000/does_not_exist'
Expected Behavior
trace and
This can be added to spec/finders/active_record_spec.rb
it 'returns correct `size` for last page' do
users = User.paginate(:page => 3, :per_page => 5)
users.total_entries.should == 13
users.total_pages.should == 3
users.size.should == 3
endThe test is failing:
bundle exec rspec spec/finders/active_record_spec.rb:420
It would be great if a new message, appearing automatically via WebSockets, also triggers notifications via the Notifications API.
https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API
Cautionary: There should also be some kind of grouping/throttling for massive batches that arrive all at once.
Is there any documentation on how to use less-loader with webpacker? I just spent the last four hours trying to figure out why my application was throwing a this[MODULE_NAME] is not a function because of a dependency upgrade, and found out that it was because in my loader I was using MiniCssExtractPlugin.loader, but webpacker was using its own internal version of MiniCssExtractPlugin. I wo
In #1535, @sedubois writes:
- people can create their own plugins and share them on the list of plugins wiki page, but that information tends to be outdated or not verified and so the quality information gets diluted;
- external plugins might not be as stable as Administrate itself, because people are basically on their own
Typo in the Wiki
There's a repetition in https://github.com/CanCanCommunity/cancancan/wiki/Defining-Abilities : because because. And it looks like the wiki is not in an edit access for all mode.
Is your feature request related to a problem? Please describe.
Due to interop with other services, I want to use the GraphQL IDL not the Ruby DSL to define my schema. That has no documentation I can find (nor any test cases, or open GitHub issues) on how to make the decoder implementation for the scalar type known to the Schema.
Describe the solution you'd like
Ideally I'd love
Problem
As of now, when a user has to configure inbound emails, there are some settings related to this under the account settings page. This is confusing and does not really say anything more about each of the settings.
Solution
Required more documentation on guiding a user to configure this.
Hello!
I think I've figured out a good way to get SimpleCov working with Spring. For my Rails application, preloading the app would require some classes in my ./app directory, and this would cause some inaccurate coverage to be reported (any lines that were required during preloading were missing in the coverage.) I figured out how to fix this issue by starting SimpleCov in config/spring.rb
The Docker setup instructions do not show how to run the test suite with the docker-compose command. I've successfully set up the app and started the Rails server with the following command (which is in the instructions):
GITHUB_CLIENT_ID=yourclientid GITHUB_CLIENT_SECRET=yourclientsecret
What's going on?
- Create page with pagepart
- Go to page editing page in refinery admin
- Click "edit source code button"
- Write something
- Submit form
Expected behavior
It should update related page part.
Rails generators can be a bit of a mystery for folks unfamiliar with them. While trying to explain to somebody where some of the file manipulation methods come from it took me way too many steps to find the documentation I was hoping for:
- The method wasn't defined in the suspenders generator I was looking at, so walked up the inheritance chain to
Suspenders::Generators::Base - Not define
After generating annotations using the Yard doc format, running migrations does not update the annotations.
Commands
bundle exec annotate --models -f yard
Generates:
# == Schema Information
#
# Table name: users
#
# @!attribute id
# @return []
# @!attribute name
# @return [String]
# @!attribute created_at
# @return [Time]
# @!attribute updated_atdocs wrong
When authenticating a user, we skip any calls to BCrypt if we weren't able to find a user with the provided email address. This results in a faster response time to the client and less work on the server... but it also means one could possibly monitor the response times from the app to see if the provided user has an account.
When we detect that a user does not exist with the provided email, we s
Created by David Heinemeier Hansson
Released December 13 2005
- Organization
- rails
- Website
- rubyonrails.org
- Wikipedia
- Wikipedia

For now, there is no mention of Webpack in the official guides – neither on edge guides – except for Ruby on Rails 6 release notes and upgrade guide. The documentation of the Webpacker gem is quite good, but a newcomer to Rails wouldn't know at first that he needs to have a look to it.
Specifically, it would be good to have a mention of Webpack in the following guides: