I have a ruby on rails application and it would be nice to see how many hits I get per hour. Is there some simple free software to do this or do I have to develop a custom solution? Thanks!
I'm using application.html.erb in the views/layouts folder of my Ruby on Rails web app as a template. But there's one page in which I don't want the template to be used. Is this possible?
I am looking for a drag and drop components implementation for a website similar to http://www.netvibes.com. So the positions of the components should be saved in database. If any one can help me with any javascript or rails tutorial implementation or guidance for this, that will help a lot.
In my mental model of authentication, a user should be distinct from the way they log in. So for example, a User could have an associated EmailLogin (with an email/password), or they could have many (or none). Similarly they could have 0..* associated OpenIDLogin credentials.
Are there any existing authentication libraries for Rails which use this method?
Alternatively, is this a really terrible idea?
I have a Rails app (blog) that I am creating. Very basic stuff. In my content area I have a text area for the content of the post. I am needing to include some html in the text area (links, formating, etc).
<%= f.text_area :content %>
Is there another tag that I can use instead of text_area, that will allow me to do this?
Hi all,
What is the current practice like to write user-specific configuration settings into a rails application?
For example, privacy settings in a social networking application.
I know application-wide settings can be stored in a .yml file in config/ but what about users?
I have several frequent Cron jobs that are run via Rake and the output of those jobs are e-mailed (via a MAILTO). Due to the fact that these tasks load the Rails environment (which includes Erubis) they always prints out "** Erubis 2.6.5" on startup. This means that an e-mail is always generated since Cron receives output. Is there any way to configure Erubis to cease printing this startup message to the console?
I'm tracing my way through the source code and can't seem to find where the command "rails server" would be for a generated app. Where is it? Also is there some way I can track down these things in the future?
After several Google searches, it appears that the way to create PDF's in Rails from HTML and CSS (versus a new markup language) is to use Prince.
With licensing at $3800 for my non-big-commercial app, I'm wondering if this is, in fact, consensus or people have an alternative they can share the what's and how's.
I've been googling about how to accomplish oneline chat for rails application and I've implemented a text chat version using Juggernaut. But for video chat, I only find flash&red5 might be a solution for me, but it's flash and java, which I'm relatively not good at. Is there a better solution?
I am doing everything on my own: front-end and back-end. I am proficient with HTML and CSS, but a noob in Ruby on Rails. Now that I want to develop the site, I wonder if I should start from front-end first, or back-end. Cos what I am doing for front-end now are all static. I am afraid that I have to change a lot of my front-end coding when I do my back-end.
I want to store a path for a special directory used by my Rails application. Should I store that in environment.rb, or is there another place this is meant to go?
THE_DIRECTORY_PATH = '/path/to/directory'
I have an application layout in my rails app to give a default header/footer for my entire website. I have 1 controller that I dont want this to apply to (a checkout page), and an entire namespace that needs to have a separate default template (the admin interface, which has 10-15 different controllers). What is the easiest way to do this?
My system is F'd. How do I completely uninstall rails, ruby and rubygems?
any suggestions on where to go to reinstall from scratch? Best practices? I'd like to get back to 3.0 beta
Thanks!
There are several plugin options for building a search engine into your Ruby on Rails application. Which of these is the best?
Thinking Sphinx
UltraSphinx
Sphincter
acts_as_sphinx
acts_as_ferret
Ferret
acts_as_xapian
acts_as_solr
Hyper Estraier
Hi,
I am trying to play around with integrating with some possible HTTP or XML/SOAP services in rails?
I am looking specifically at Postful access points and Postful's...but I'm not clear exactly how to do it without using net:http but the Nestly gem looks like a way I'd like go. I just need a step-by-step example because the current docs I'm not sure what to do.
Thanks!
I have made a simple Rails application that allows people to comment on posts. How do I prevent that user from submitting that form over and over again? On reddit.com they only allow newer users to make new posts every ten minutes. How can I do this with my simple blog/commenting system? Any help would be greatly appreciated. Thanks for reading my question.
I have been searching the web for recent benchmarks measuring Grails overall performance compared to its competitors (Rails, Django, ASP.NET MVC...), but I didn't find anything more recent than a 3 years-old article with obsolete grails version (0.5). See here and here.
So, starting from grails 1.2, are there any more recent grails benchmarks you are aware of ?
Or do you have your own performance tests for grails (compared to others if possible) ?
After several Google searches, it appears that the way to create PDFs in Rails from HTML and CSS (versus a new markup language) is to use Prince.
With licensing at $3800 for my non-big-commercial app, I'm wondering if this is, in fact, consensus or people have an alternative they can share the whats and hows.
I often see things like this in rails views:
<% form_tag some_path do -%>
<% end -%>
Why is there a "-" at the end of each of those lines? My code works fine without it, but is it a best practice or some kind of security measure?
Is there any command either in debugger or ruby-debug to get a list of all gems and/or plugins loaded in memory for a Rails process? I understand only the 'require' gems are loaded but I would like to quickly see what got loaded during runtime.
Is it possible to configure Rails so caches created with caches_page survive a Capistrano deploy? Ie, can I configure the cache to be saved into a shared directory rather than in the public directory?
With Rails, If I have a variable with HTML content, how do I output it, unencoded in my view file?
This code, for example:
<% my_variable = "<b>Some Bolded Text</b>" %>
<%= my_variable %>
Outputs:
<b>Some Bolded Text</b>