Stream

Join this community to post or comment

Oliver Bock

Discussion & Meta  - 
 
We published a new guide on I18n for Rails in our blog and I would love to get some feedback if this kind of article is helpful for you. Thank you.

https://phraseapp.com/blog/posts/last-rails-i18n-guide-youll-ever-need/

#rails #i18n #l10n #guide #howto
We will show how to add support for I18n in a Rails app. Where to store translations, what localized views are, how to format dates and times & more.
1
Add a comment...

Rinki Sharma

Looking for help...  - 
 
Please help in How to authenticate user comments on #Rails blogging #website to prevent bots ? http://goo.gl/AVW78A
1
Add a comment...

David Borden

Discussion & Meta  - 
When clients come to the programmer, many a times, they ask and insist on using Rails, but the programmers hardly know it’s important and think that the clients are ignorant, but when a person is i…
1
Add a comment...

Emily Miller

Discussion & Meta  - 
 
I am very much glad for who liked this post and hope that all will read this useful post. #ruby  on #rails  ( in 30')
13
1
Johan Morales's profile photoEmily Miller's profile photo
2 comments
 
:) Thak's for ....
Add a comment...

James Aidan

Discussion & Meta  - 
1
Add a comment...

Tanay Sharma

Looking for help...  - 
 
How does AMP-HTML page load javascript from rails/app/assets/javascript folder?

Before AMP I was using javascript_include_tag 'application' for including all js files but now after AMP implementation it shows error:

"The tag 'script' is disallowed except in specific forms"
AMP supports async attribute and application/json+ld type in script tag



1
Add a comment...

Christian Rolle

News & Cool Stuff  - 
 
Custom RSpec matchers can help to improve spec readability
2
Add a comment...

AMRINDER SINGH

Discussion & Meta  - 
 
Learn about Iterators and their usage in #Ruby.

http://goo.gl/4qYCSB

#rubyonrails #RoR
2
Add a comment...

Zack Siri

News & Cool Stuff  - 
 
We are starting to build our admin interface in our Rails Foundation Series. Check it out!
1
1
Add a comment...

Nicolas Alpi

News & Cool Stuff  - 
 
An overview blog post on how to use service workers in Rails for multi devices notifications. Includes full demo and souce code!
 
Using service workers to send multi-devices notifications with full Rails demo.
We were recently developing an app with a real-time notification component. Since we could be confident of the devices being used by end users, we decided to forego long-polling and websockets, and look into using service-wor...
3
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

Jimmy Patrick

News & Cool Stuff  - 
Nginx Plus Release 10 adds a web app firewall, IP transparency, and support for the nginScript configuration and control language
1
Add a comment...

Milica Maksimović

News & Cool Stuff  - 
 
A tutorial about code smell and how to solve it.
Step out of the MVC box and learn how to keep your Ruby application enjoyable to work on.
2
Add a comment...

AMRINDER SINGH

News & Cool Stuff  - 
 
Learn about Uses of Booleans, Ranges and Constants in #Ruby.

#RoR #rubyonrails #webdev

http://goo.gl/ScV7NI
1
Add a comment...

jesus castello

News & Cool Stuff  - 
 
Why do we use Floats when they can be imprecise? Why are Fixnums special? Click here to read this article & discover the surprising answers :)
4
Rajendra Prasad's profile photo
 
That was a Short and really helpful post. Thanks.
Add a comment...

Panayotis Matsinopoulos

Looking for help...  - 
 
Shall I prefer "require_or_load" vs "require"?

Hi,

I see that "require_or_load" keeps a "loaded" array with the files that have been required or loaded. Shall I prefer "require_or_load" vs "required" in my Ruby on Rails code.

Note that I have come to this after trying to sort out a list of WARNINGS that I was getting when, on development environment, I turned the "config.eager_load" to "true".
The warnings were about constants already defined, which was because some of the files, originally "required", then with "config.eager_load" "true" were "loaded" second time.

Your thoughts?

P. 
1
Add a comment...

IEgor Dorovskykh

Looking for help...  - 
 
i am so sorry, but i need to do something with javascript. I want that my graph can be added by javascript view, but it is works when i just wrote the same, but in html.erb
_coder.js.erb
$('#cezar_dictionary_encoded_text').text('<%= @cezar_dic.encoded_text %>');

$('#mygraph').append('<%= column_chart @cezar_dics.group(:text).count %>');

1
Rinki Sharma's profile photo
 
Hi +IEgor Dorovskykh 
If your query has still not been resolved, you can post your query at http://findnerd.com/askquestion/ & the experts here in this forum will resolve your query within the shortest possible time frame

Add a comment...

IEgor Dorovskykh

Looking for help...  - 
 
why it can be that js file do not connected to project? i am just very new. I know that i have to switch off turbolinks and remove coffee file with the same name
1
IEgor Dorovskykh's profile photoRobert Gauld's profile photo
5 comments
 
In the terminal you run the rails server in you should see the cause of the 500 error. 
Add a comment...

Panayotis Matsinopoulos

Looking for help...  - 
 
Any help on unit testing with Mongoid and Rails 4 would be much appreciated. My problem is described here:

http://stackoverflow.com/q/38900355/658469
2
Add a comment...

Milica Maksimović

News & Cool Stuff  - 
Learn how to test the main aspects of Ruby on Rails models with the MiniTest testing suite.
6
1
Add a comment...

Jason Hsu

Discussion & Meta  - 
 
I'm in the process of updating my integration tests to use the login_as function of the Devise gem INSTEAD of logging in the long way (with full authentication) in order to save time on tests. (I have an integration test that tests the login process. Since the full login process takes longer than login_as, there's no point repeating it in other tests.)

The code is in the login_as branch of my project at https://github.com/jhsu802701/generic_app_template_rails5/tree/login_as . The test is at test/integration/admins_index_test.rb.

The admin index page should be visible to admins but not to users or non-logged-in visitors. I'm able to use login_as to log in as a user, but login_as doesn't work for logging in as an admin. The "puts page.body" shows that the test perceives an unregistered visitor instead of an admin.

What exactly am I overlooking?
1
Jason Hsu's profile photo
 
OK, now I understand what my problem was. I assumed that the login_as command automatically visits the root_path page, because that's what happens in the authentication process. This does NOT apply when the login_as command is used. The "visit" command must follow, or the test is left in limbo and only sees a blank page.
Add a comment...