rails / website Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://rubyonrails.org/
Home Page: https://rubyonrails.org/
On the features page, each of the headings seem to use placeholder text, repeated throughout the page.
https://rubyonrails.org/features
Can you please add licenses for the source code, and the blog posts in this repository.
https://github.com/rails/website/blame/4597a40aa915e9b22e63cbc55e59dd01df0d5574/index.html#L289
I am thinking 'ActionDispatch route URLs' sounds odd. I think it should be 'ActionDispatch routes URLs'?
Event page Contains some js errors or it's just a console log.
The Rails logo link on the homepage has no text for assistive technology.
This is an issue for screen reader users and dictation users who are navigating the page.
Suggested solution is to use an aria-label='Home'
on the link element.
<a class="nav__logo" href="/" aria-label="Home"></a>
Hi I'm not sure if this is the correct repo for this issue, but I was following the ruby on rails getting started guide at this URL and came upon a silent bug.
On Step 5.10 Adding Some Validation, there is a section where the user is asked to modify app/views/articles/new.html.erb
to check for error messages:
The relevant code is:
<%= form_with scope: :article, url: articles_path, local: true do |form| %>
<% if @article.errors.any? %>
<div id="error_explanation">
<h2>
<%= pluralize(@article.errors.count, "error") %> prohibited
this article from being saved:
</h2>
<ul>
<% @article.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>
<p>
<%= form.label :title %><br>
<%= form.text_field :title %>
</p>
<p>
<%= form.label :text %><br>
<%= form.text_area :text %>
</p>
<p>
<%= form.submit %>
</p>
<% end %>
<%= link_to 'Back', articles_path %>
I got a silent error and did some Googling and found that in the terminal the form was being processed as TURBO_STREAM so I had to insert this snippet into the form line of code like so:
<%= form_with scope: :article, url: articles_path, local: true, data: { turbo: "false" } do |form| %>
...
to get the correct error as mentioned in the guide.
Sorry again if this is not the correct place to put this issue; I looked for the guides page in _pages
but wasn't able to find it.
Currently being worked on by Claire Lin
mac m1 chrome 103.0
no errors from console
Congrats on the release of rails 7! And the new site (it's brilliant).
In the Action Controller example, I wondered if permit
should be preferred over permit!
?
Current:
def article_params
params.require(:article).permit!(:title, :content)
end
Suggestion:
def article_params
params.require(:article).permit(:title, :content)
end
I guess permit!
was used to demonstrate mass assignment functionality (or perhaps the example application needed it to be that way). Just wanted to check, as permit
seems a little more common and possibly safer for demonstration purposes.
http://localhost:4000/category/news/
http://localhost:4000/community/
<html>
<body>
<!--StartFragment-->
| <!DOCTYPE html>
-- | --
| <html lang="en-US">
|
| <title>Redirecting…</title>
| <link rel="canonical" href="http://localhost:4000/category/news">
| <script>location="http://localhost:4000/category/news"</script>
| <meta http-equiv="refresh" content="0; url=http://localhost:4000/category/news">
| <meta name="robots" content="noindex">
| <h1>Redirecting…</h1>
| <a href="http://localhost:4000/category/news">Click here if you are not redirected.</a>
| </html>
|
<!--EndFragment-->
</body>
</html>
<html>
<body>
<!--StartFragment-->
| <!DOCTYPE html>
-- | --
| <html lang="en-US">
|
| <title>Redirecting…</title>
| <link rel="canonical" href="http://localhost:4000/community">
| <script>location="http://localhost:4000/community"</script>
| <meta http-equiv="refresh" content="0; url=http://localhost:4000/community">
| <meta name="robots" content="noindex">
| <h1>Redirecting…</h1>
| <a href="http://localhost:4000/community">Click here if you are not redirected.</a>
| </html>
|
<!--EndFragment-->
</body>
</html>
https://rubyonrails.org/world/2024/ should work properly as same https://rubyonrails.org/world/2024
cc: @AmandaPerino
Should we add apple to the list of companies that use Rails?
There are a number of Rails jobs published at Apple.
ref: rails/rails#43912
Previously, https://rubyonrails.org serves pages with trailing slash but now it returns 404.
Existing links like search engines' indexes are still have references to old URL.
Is it intentional?
Show content as the same as https://rubyonrails.org/security or redirect to https://rubyonrails.org/security
https://rubyonrails.org/security/ returns 404
When you visit https://rubyonrails.org/world and scroll down, you'll see a list of sponsors. I think it'd be a nice touch to link the images somehow to the sponsors' sites. This will serve a few purposes:
Hi! I'm quite a bit unfamiliar with the rails framework and was looking upon the homepage examples and have a few suggestions to maybe lessen some confusion (that at least I was encountering). Or moreover, it may be just that these examples are intended for those with Software Engineering backgrounds to see these and 'fill in the blanks' instead of a concrete example of how to accomplish the example outlined.
app/models/article.rb
has_one_attached :avatar
One suggestion would be renaming this to :picture
as I am believe it's meant to be a photo that is for the article, and not the avatar of the author.
app/views/articles/show.html.erb
<%= image_tag @article.creator.avatar.url %>
This is where my knowledge of the 'magic' of the framework becomes a bit limited, however should this line read as author
instead of creator
, or is there some internal mapping that assumes the belongs_to and maps creator
as such for us?
app/views/articles/show.html.erb
<%= image_tag @article.creator.avatar.url %>
<%= @article.byline %>
Adding a sample of the byline method and showing its usage in the view might be helpful.
I would be more than happy to take this issue and create a PR with outlined fixes, I'm just wanting to make sure that my assumptions are correct and there is not framework 'magic' that is shown in these examples that I do not understand.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.