Tagged Questions
4
votes
1answer
85 views
Creating a Ruby gem that talks to another gem
I am working on creating an interface gem that works with the Jira-Ruby gem.
I have several questions and would like a general review for both my code and my attempt at creating a gem (I've never ...
4
votes
2answers
153 views
Is there a way to refactor this code?
I'm new to ruby on rails, on this project I'm using Ruby 2.0 and Ruby on Rails 3.0.
I would like to know if this piece of code can be refactored, as it is
...
3
votes
1answer
144 views
3
votes
1answer
187 views
ruby code case when not so dry
Ruby code below seems to be not so dry. Can you please help me reduce the code.
...
5
votes
3answers
198 views
Setting bgcolor in Ruby. What's the proper way to do it?
<p style="background-color:#<%= debate.bg_color %>;" >
be_color is a method of ...
1
vote
1answer
458 views
Is that good practise to add a flash message to redirect in a single command in rails [closed]
I read this scrap and it says that i can add a flash message to redirect in a single command in rails. But when i tried in my rails 2.3.4 application it doesn't work.
This is my working code
...
7
votes
1answer
245 views
Refactor Helper methods
I have two helper methods that return li for view with the li for current view having id as selected.
...