Tagged Questions
Ruby on Rails is an open source full-stack web application framework written in Ruby. It follows the popular MVC framework model and is known for its "convention over configuration" approach to application development.
0
votes
0answers
2 views
How do I Link_to an external URL in new tab/window and also run controller method?
I have a list of links being rendered from the database.
When a link is clicked I'd like the href to open in a new tab/window and to also call a controller method so I can update a database field ...
0
votes
0answers
3 views
rake not working in Fedora 18
I installed rubygems from repository and then from gems installed rails...
After create new rails project, when i use rake command it doesnt work for me ...
the event trace is here,
[root@localhost ...
0
votes
1answer
3 views
How to build a Rails REST API with 2-legged OAuth?
I've been struggling for two days with OAuth and RSpec to get a properly tested RESTful API using a 2-legged OAuth authentication so I thought about posting it here and prevent more pain to happen.
...
0
votes
0answers
3 views
How do I translate default submit_tag button text in Rails?
How do you translate default submit_tag button text? I can translate f.submit as such, but this does not work for forms not handling objects, like password resets:
en:
helpers:
submit:
...
0
votes
3answers
13 views
How do I create an anchor in rails?
How do I translate the following to a link_to tag?
Click <a href="#portfolio">here</a> to see my portfolio.
....
<a name="portfolio"></a>
0
votes
0answers
14 views
How is the best option know to dynamically add model fields in nested form?
I have following nested form. And I want to add dynamically multiple web_profiles to person by clicking + button. Right now like you can see in the controller I can add only one web ...
0
votes
1answer
7 views
Rails - How to generate routes from an Object?
Scenario:
A main Rails Application
Various Rails Engines, mounted in main Rails Application (routes.rb)
Now Suppose I have an Engine named "Engine" and inside there is a model named "Topic".
...
0
votes
1answer
12 views
testing rails controlllers file
This is my create action in ParticipationConsent controller.
ParticipationConsent#create
def create
@participation_consent = @project.participation_consent.new(params[:participation_consent])
...
0
votes
0answers
5 views
Getting Gibbon and Mailchimp to work
Newbie to Rails, Gibbon and Mailchimp API. My goal is to send the email addresses of new users to my Mailchimp list using Gibbon.
I'm using Devise for signup, and I figured I could just attach the ...
0
votes
0answers
4 views
chef application_ruby cookbook: unicorn is not restarted
I have the following application defined using application and application_ruby cookbooks:
application 'railsapp' do
owner 'vagrant'
group 'vagrant'
path '/home/vagrant/railsapp'
revision ...
0
votes
1answer
19 views
jQuery UJS event binding
How does jQuery UJS know when document is ready and starts attaching events to selected elements?
In my case it seems to start binding too soon (document not loaded).
2
votes
1answer
19 views
Rails why is .css.scss and .html.haml necessary?
Surely Sprockets has enough info if a file is named x.scss and y.haml to assume that by default it should be rendered as css and html (the same applies with CoffeeScript)?
0
votes
0answers
10 views
Jruby : install redcarpet throw error
I want to install redcarpet gem in JRuby
I did
jruby -S gem install redcarpet
Fetching: redcarpet-2.3.0.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing ...
0
votes
0answers
9 views
Chef: database migration not run in application recipe
I am using application and application_ruby recipes. And I am defining my app like this with migrate 'true':
application 'railsapp' do
owner 'vagrant'
group 'vagrant'
path ...
0
votes
0answers
16 views
Register a post processor for stylesheets?
Is there a way to register a post_processor for stylesheets in Rails 3.1? I have tried
config.after_initialize do |app|
app.assets.register_postprocessor 'text/css', :my_postprocessor do ...