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
6 views
Dynamic namespaced controllers w/ fallback in Rails
I have a somewhat bizarre requirement for a new Rails application. I need to build an application in which all routes are defined in multiple namespaces (let me explain). I want to have an application ...
0
votes
0answers
6 views
EmberJS Forms with Rails
Could someone point me in the right direction for POSTing EmberJS forms to a rails backend JSON service?
I can't figure it out.
Please provide an example?
2
votes
0answers
11 views
URL requests with [object] in place of parameter values
We're seeing requests to our server with the literal [object] replacing the values where parameters should be.
For example: http://example.com/users/[object]
I've found some suggestions that it ...
0
votes
0answers
6 views
ruby on rails: ElasticSearch / Tire dynamic search on multiple indicies
I've done a bunch of searching and I haven't been able to get an answer to this question - hopefully this isn't a repeat (apologies if it is)...
Preface: I'm using Rails & Tire to perform ...
-3
votes
0answers
28 views
Why should I use a MVC framework for my web application? [closed]
I have a relatively small web application of which my back-end is comprised solely of JSPs and a few Servlets making DB calls via JDBC. Some have suggested using a more sophisticated MVC back-end ...
0
votes
0answers
7 views
Is there a way to set set config.action_controller.asset_host in development
In my production.rb I set my asset_host to cloudfront:
config.action_controller.asset_host = 'http://xxxxxxxx.cloudfront.net'
Now I'm finding that in some circumstances (specifically, outputting ...
0
votes
0answers
10 views
Can I save cookie values with other data during form process in Rails?
I have set three cookies in my Rails controller for some information about the visitor when they land on the site. When they submit a form, I need the values of these three cookies to be saved in the ...
2
votes
1answer
17 views
New Route link_to working in one place but not in another
I've created a new action in my controller, groups_controller.rb
def add_member
@group = Group.find(params[:id])
@user = User.find(params[:user])
@group.add_member(@user)
redirect_to :back
end
...
1
vote
1answer
11 views
Rails + Cucumber + Selenium: How to click on a span inside a ul and li?
I am trying to write tests for clicking around on my mobile site. However, I'm having trouble finding any documentation on how to click embedded non link elements. This is my HTML:
form ...
1
vote
3answers
11 views
How to return a Mongoid::Criteria for A has many B has many C relation?
Relations are:
Account has many Groups
Group has many Users
I need a method in Account to get all users (Users of each group) and then apply an User scope:
account.rb
def users
...
0
votes
1answer
8 views
ghostscript pdf to thumbnail
I searched for this very much but didn't got the solution
I want to create a thumbnail from pdf using ghostscript of pixels 185X185. I tried using options-
gs -q -sDEVICE=png16m -dNOPAUSE -dBATCH ...
0
votes
1answer
20 views
Show validation errors on another page in Rails
I have a webapplication in Rails 3, where i want users to be able to sign up on the frontpage. The frontpage is controlled by a PagesController and the sign up process is controlled ...
0
votes
3answers
22 views
Get all records with child records OR field length > 250
I have a Comment model which has-many attachments. What I want to return, is all of the comments which either have one or more attachment records, OR whose comment is longer than 250 characters.
Is ...
0
votes
1answer
13 views
How do I pull the correct image URL from this Wikipedia table?
I built a scraper to pull all the information out of a Wikipedia table and upload it to my database. All was good until I realized I was pulling the wrong URL on images, and I wanted the actual image ...
0
votes
1answer
19 views
Rails - Where (directories) to put Models that are not Active Record
We are building out apps that have Models that are not database components.
We are curious to learn what others are doing in the rails community to address this subject.
We are struggling with where ...