Stream

Join this community to post or comment

Carlos A Millan

Discussion & Meta  - 
 
Hi pals, where can I find this ebook: the well grounded rubyist in PDF? Thanks
1
Erik Backman's profile photoCarlos A Millan's profile photo
2 comments
 
JA JA JA. 
Add a comment...

Carlos A Millan

Discussion & Meta  - 
 
What IDE o editor do you recommend me to code with Ruby on Rails?
1
Mathew O'Hare's profile photoSantino Bivacqua's profile photo
9 comments
Add a comment...

Christian Rolle

News & Cool Stuff  - 
 
The Presenter pattern helps to clean up Views and Helpers.
1
Add a comment...

Cezar Halmagean

News & Cool Stuff  - 
 
Testing that a block argument receives a certain method call is tricky to test in both RSpec and Minitest so hopefully this post will help.

http://mixandgo.com/blog/how-to-test-a-function-that-yields-a-block-with-minitest-and-rspec?utm_source=plus.google.com&utm_medium=social&utm_campaign=New+Blog+Post&utm_content=Post+2016-28-04
Have you ever tried writing a test for a function that takes a block and does something to that block? I recently had to do that same thing and found there was not much written about it so in this post I'm going to fix that, I'm going to show you how to create expectations on block arguments.
2
Add a comment...

jesus castello

News & Cool Stuff  - 
 
You may have read about metaprogramming before, but how are some of the most popular open-source projects making use of this feature?
2
1
Davi Busanello's profile photo
Add a comment...

Tag Charlie

Discussion & Meta  - 
 
Is it just me ? While I'm learning rails(ruby 2.3 , Nginx+Passenger). I found it consumes my memory a lot every request. If it eats memory so much... What level EC2 I should use in AWS...? Anybody found the same issue like I did?
1
Add a comment...

Mario Daniel Carugno

Looking for help...  - 
 
If I add a resources in routes.rb

resources :articles

and then I show it with 'rake routes' (sorry I had to format the following by hand)

Prefix Verb URI Pattern
articles GET /articles(.:format)
POST /articles(.:format)
new_article GET /articles/new(.:format)
edit_article GET /articles/:id/edit(.:format)
article GET /articles/:id(.:format)
PATCH /articles/:id(.:format)
PUT /articles/:id(.:format)
DELETE /articles/:id(.:format)

why Rails left some prefixes blank ?
I've noted that only GET verbs have prefix, but why ?

1
Sergey Kviatkovsky's profile photo
 
It means the prefix is the same as one above: POST articles, DELETE article, etc. new_article and edit_article have special prefixes because they're both using GET verb. 
Add a comment...

Guido Barbaglia

News & Cool Stuff  - 
2
Add a comment...

Fabio Bazurto

Discussion & Meta  - 
 
Hi guys, do u know a good ruby-based Knowledge Management System?

I need more options than OpenKM and Redmine.

 

I will be very thankfully with you.

Salu2,
FB
1
Add a comment...

About this community

Rails, with a focus on technical news and cool articles from the people in the community. Certain types of posts tend to be off-topic for this community: > Job postings or solicitation of work > "X vs. Y" posts such as "Ruby vs <insert language>" - community members are generally able to judge for themselves, and these types of posts often start flame wars for no reason > Advertisements for commercial services > Links with referral codes (esp. where the poster stands to benefit) > Repeat usage of the community for self-promotion > Posts from an organization, rather than an individual > Posts that are about more general programming topics, and are specific neither to Ruby, nor Rails

L. Preston Sego III

News & Cool Stuff  - 
 
action_cable_client released with compatibilty with the Rails 5 beta 4!

https://github.com/NullVoxPopuli/action_cable_client
1
Add a comment...

Chris Parbey

News & Cool Stuff  - 
 
Craiglist like marketplace development with Ruby on Rails
What is the name of this project? Marketplace for buyer and sellers, similar to CraigsList. What will it be used for? New Startup How many weeks are you already working on it? 3 days Which two main programming languages are you using? Ruby, Javascript Which packages, libraries and APIs are you using? Braintree Payments Is it a fun or commercial project? Commercial On which website can people test it and give feedback? put your answer here Where d...
1
Add a comment...

Alexei Telles

News & Cool Stuff  - 
 
Have a Rails Engine holding all your models and migrations as a plugin for many main apps as you need. Run your migrations from main app.
1
Add a comment...

Brandon Hilkert

Discussion & Meta  - 
 
I wrote a new article on Ruby Gem Post-Install Messages. Hope you enjoy!
2
Add a comment...

Chris Parbey

News & Cool Stuff  - 
 
Live development of an online game store in Ruby on Rails & Ember 
https://www.livecoding.tv/terry/
5
1
Moses Ndeda's profile photo
Add a comment...

Matthew garsteck

Looking for help...  - 
 
Ive been scouring the internet for the last 24 hours trying to figure this problem out.

Im attempting to create a Rails app that manages temperatures for a garden. I have setup my controllers and models appropriately to have resources for Grow - Tray - Plant.
Grow has many trays
Tray has many Plants

Im able to create nested trays in each grow. But I am not able to create plants in a designated tray.

Im getting the following error:
undefined method `tray'
This is for my plant _form

<%= form_for([@grow, @grow.trays.plants.build]) do |f| %>
<div class="field">
<%= f.label :title %><br>
<%= f.text_field :title %>
</div>
<div class="field">
<%= f.label :description %><br>
<%= f.text_area :description %>
</div>
<div class="field">
<%= f.label :tray_id %><br>
<%= f.text_field :tray_id %>
</div>
<div class="actions">
<%= f.submit %>
</div>
<% end %>


https://github.com/mgarsteck/grow-manager

The routes look as such:

resources :grows do
resources :trays do
resources :plants
end
end

Ive also tried:
resources :grows do
resources :trays
resources :trays do
resources :plants


The form for building the tray looks like this and it works:

<%= form_for([@grow, @grow.trays.build]) do |f| %>

<div class="field">
<%= f.label :title %><br>
<%= f.text_field :title %>
</div>
<div class="field">
<%= f.label :description %><br>
<%= f.text_area :description %>
</div>
<div class="field">
<%= f.label :grow_id %><br>
<%= f.text_field :grow_id %>
</div>
<div class="actions">
<%= f.submit %>
</div>
<% end %>

Is this even the right approach?

1
Add a comment...

Chris Thompson

Looking for help...  - 
 
Anyone know how to send a private message to somebody?

1
Chris Thompson's profile photoRyan Ball's profile photo
3 comments
 
Go to their profile, there's a hangout icon beneath their portrait.. click that and invite them into a private conversation.
Add a comment...

Chris Parbey

News & Cool Stuff  - 
 
Live development of a Gaming Portal with Ruby on Rails & Bootstrap
https://www.livecoding.tv/gingray/
1
Add a comment...

Tag Charlie

News & Cool Stuff  - 
 
 
Understanding N + 1 Query problems can help alleviate tricky performance problems from your Ruby on Rails application.
Diagnosing slow Ruby on Rails transactions with New Relic is a great way to make sure a Ruby on Rails application is as efficient as possible.
3
Add a comment...

Chris Parbey

News & Cool Stuff  - 
 
Inventory Management App development with Ruby on Rails
Actual projects [JavaFX] CargoArteus (For Client Company) [Wordpress/RWD] School Homepage [Wordpress] RFGaming v3 About me ;) Hello guys! My name is Dawid. I'm 17 years old. I'm from Poland from small city at the foot of the mountains. On this stream I wanna to show you how to code a Wordpress Templates using Bootstrap and CSS with preprocesor LESS. Also I'm Java and PHP programmer ;)
4
Add a comment...