ruby-on-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 5,026 public repositories matching this topic...
-
Updated
May 22, 2020 - Ruby
https://github.com/shakacode/react_on_rails/blob/master/docs/basics/recommended-project-structure.md
Instead, let's consider recommending leaving package.json and node_modules at the top-level...
There are no big advantages of having this be inside of the /client directory and there are a few additional bits of unnecessary complexity.
@ashgaliyev please add to this discussion.
Update styling
Update styling to match new Chrome/devtools flat design.
Facebook deprecated befriend APIs where we can create and accept a friend request between two test users.
Link to the API:
https://developers.facebook.com/docs/graph-api/reference/v4.0/test-user/friends
Link to the bug I reported on Facebook where they confirmed that they have deprecated it:
https://developers.facebook.com/support/bugs/1129010723972017/?disable_redirect=0
Now, `create_netw
I see the example for defining settings and mapping for an index/model in the README of https://github.com/elastic/elasticsearch-rails/tree/master/elasticsearch-model:
class Article
settings index: { number_of_shards: 1 } do
mappings dynamic: 'false' do
indexes :title, analyzer: 'english', index_options: 'offsets'
end
end
end
However, I could not find a
Hi there,
I have a codebase that uses establish_connection
. I used Octopus in another (unrelated) part of my app. I did not notice that the parts of the code that used the connection from establish_connection
were affected until I shipped to production. After looking through the codebase I realized that octopus_establish_connection
actually says I do NOT want to use octopus for this connec
#10254
It would be super helpful to go through and get a list together of what lessons have learning outcomes, and which don't. If you respond with a list here, I can edit the other ticket with the checklist.
It looks like the Pivotal blog link in this comment
# after running once within a process http://pivotallabs.com/how-i-test-rake-tasks/
should now be to https://content.pivotal.io/blog/test-your-rake-tasks.
-
Updated
Mar 9, 2020 - Ruby
The project has a very cushy rating, but it doesn't seem like there's anywhere I can go to see the list of features. There's a wiki and FAQ, but there's really nothing there other than a cautionary warning about the check-in feature being very broken.
Could use some help.
-
Updated
May 11, 2020 - Ruby
This may surprise developers used to other templating engines used in Rails, but, at time of writing, Liquid does not behave like ERB/HAML templates in Rails where interpolated values are escaped by default.
Liquid does not escape interpolated values and does not have an option (at time of writing) to configure this to be the default. The developer needs to remember each and every time to es
I ran into a situation where there was a stupid mistake in one of our cron and we didn't notice it.
I believe we do parse crons already in app to queue jobs in time. So why not complain if some crons contain errors, i.e are not parse-able. I believe they are silently ignore as of now.
If i can get some guidance i will be happy to contribute this. We may add a configuration to raise exception
I set a goal to try and commit something every day to github, I only do this because of the contribution tracker. I think a similar feature for lesson completion for TOP would be a neat gamifying feature.
-
Updated
Apr 18, 2020 - Ruby
Docs
In the quickstart the first example explains how you can introduce stimulusreflex without any javascript. This seems somewhat magical, it would be nice if it was explained somewhere more clearly how the magic works behind the scenes or what assumptions are being made to make this work.
Referring to this https://docs.stimulusreflex.com/quickstart#call-reflex-methods-on-the-server-wit
-
Updated
Aug 29, 2019
-
Updated
May 22, 2020 - Ruby
Noob Guide
I had a lovely experience installing this via Docker. Kudos.
However, when I got to http://localhost:3000/ I only see a sign in button. I can't figure out how to sign up to the system.
I've tried http://localhost:3000/admins/sign_up but it redirects to /sign_in
Is their any other documentation that explains the sign up process?
Also, I'm very interested in using this to send mail in my
When attempting to execute the compiled jar file when warbler packs in jruby-jars-9.1.9.0:
LoadError: no such file to load -- bundler/shared_helpers
require at org/jruby/RubyKernel.java:961
require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:130
<main> at uri:classloader:/META-INF/init.rb:21
require at org/jruby/RubyKernel.java:9
What would you like to be added:
Document what it would take to get Super Graph working with Yugabyte DB a distributed database that is designed to be compatible with Postgres. Super Graph makes use of a bunch of Postgres specific features like querying for database tables and columns, lateral joins, json functions et
test this in the live example
type 1 in the student name field
expected:
student1 should show (if they exist)
actual:
exception and no records returned
by the time the query reaches search_terms(query), query is of Integer class and query.downcase triggers the error
I'm fixing this with
def self.search_terms(query)
#integer queries are sent through as integer class
-
Updated
Jan 28, 2020 - Ruby
Clicking on a hint icon next to a checkbox field also toggles the checkbox. Since it's impossible to see the hint without changing the value of the checkbox, it makes the hint less useful :)
Maybe hints should display on hover?
(I may just use the helper_text instead, since that's lightweight and works for short hints)
-
Updated
Apr 30, 2020 - Ruby
If you PATCHed to /posts/1
, but send payload with a different id:
{
data: {
id: 789,
type: 'posts',
attributes: { ... }
}
}
We pay attention to the payload and not the URL - instead let's throw an error when there is a mismatch.
The test responds with a URL that is missing. We either need to create the page, or change this to link back to the old tutorial if nothing changed from a functional standpoint between R4/R5.
rspec ./spec/vulnerabilities/mass_assignment_spec.rb:12 # mass assignment attack one
rspec ./spec/vulnerabilities/mass_assignment_spec.rb:26 # mass assignment attack two, Tutorial: https://github.com
Created by David Heinemeier Hansson
Released December 13 2005
- Organization
- rails
- Website
- rubyonrails.org
- Wikipedia
- Wikipedia
After facing an issue caused by Ransack interpreting
1
/'t'
astrue
and some unsuccessful research, I found about the sanitize args and the recommended way to skip them. The documentation never mentions thatransackable_scopes_sanitize_args
must be a class method and the example shown defines an instance method.I think that's worth a documentation update, making more clear how to use th