TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ruby on Rails 5.1

140 点作者 alifbae大约 8 年前

8 条评论

eagsalazar2大约 8 年前
Yarn and Webpack integration is already changing my life (for the better). Documentation on both still sucks however. In particular the inclusion of yarn and webpack represent a significant change in development workflows that they've not really outlined yet.
评论 #14326079 未加载
3pt14159大约 8 年前
I&#x27;m still surprised they removed the formatting for db&#x2F;schema.rb which I rely on quite a bit to remind myself what properties models have, whether or not their status can be set to null, and how many digits of precision my decimal columns have.<p>I went as far as writing my own formatter which consumes the db&#x2F;schema.rb generated string and outputs another string with better formatting. The code is kinda shaky because I wrote it in a rush, but if anyone is interested I can share it with them.
评论 #14325821 未加载
评论 #14325878 未加载
评论 #14325862 未加载
评论 #14325804 未加载
brandoncordell大约 8 年前
The new form_with is bugging me. It doesn&#x27;t generate id&#x27;s on inputs anymore, so you have to manually add `id: &#x27;field_id&#x27;` so that clicking labels focuses on the input. Not having the id attribute has also broken Capybara&#x27;s `fill_in &#x27;Label text&#x27;` for me.
shawabawa3大约 8 年前
jQuery no longer being a default dependency is great! been waiting for that for a while
评论 #14325592 未加载
评论 #14325323 未加载
评论 #14326088 未加载
MichaelBurge大约 8 年前
It looks like &quot;System Test&quot; is what they call end-to-end testing using tools like Selenium with a browser. Scripts that e.g. send POST requests to the server process and check the result seem to also be included.<p>The new form_with looks convenient. It was always annoying occasionally having to switch all the methods out when a form gets more complex.<p>I don&#x27;t really use frontend Javascript stuff, but mostly because it was a pain getting it to work with Rails and doesn&#x27;t provide much benefit. Maybe in another year the Webpack changes will have made it worth using.
nathan_f77大约 8 年前
Wow, the yarn and webpack support is awesome! I&#x27;ve been using the react_on_rails gem, and I didn&#x27;t like how the webpack stuff felt &quot;tacked on&quot;, and I had to run a whole bunch of different stuff using guard. Hopefully they can work with these changes and let me get back to a single &quot;rails server&quot; command.<p>&quot;System tests&quot; look great, too. It&#x27;s great that they&#x27;ve brought this in as a convention, since every Rails project I&#x27;ve worked on has configured capybara for integration tests.
pqdbr大约 8 年前
I love Rails :)
swrobel大约 8 年前
This was released on April 27. Old news.
评论 #14325556 未加载
评论 #14325561 未加载