Tagged Questions
0
votes
1answer
13 views
Suggested way to maintain view text description
I am working on an app which requires a description to be shown for each record in the database based on the type.
For Eg.
If a customer is editing product1 of type A, the description corresponding ...
0
votes
1answer
32 views
Passing both a text_field_tag user input and a parameter to a controller action in rails
Im working with the aws-sdk and ruby and rails to try and create a tool for uploading folders anywhere in the 'flat' file structure of amazon web services (aws)
Right now I have a form and id like ...
0
votes
1answer
26 views
Rendering a partial causes user with id 1 to be last only on heroku
I am working through Michael Hartl's Ruby on Rails tutorial and came across an issue I can't resolve.
My issue is with the page that lists all Users. Locally, the code works fine and the users are ...
-3
votes
1answer
45 views
How create a new method in my controller in Ruby On Rails?
I want to generate a method in my controller "Applications" in Ruby on Rails, bur i used scaffold and now I dont know if have to create a new view too.
def list
@applications = Application.all
...
0
votes
1answer
19 views
Rails Linking to action in controller from view with data
i know there is a more elegant way to do this, but i can't figure it out, my brain must be stuck in the "S" gear.
<% @imageline.each do |album| %>
<%link_s = ...
0
votes
1answer
30 views
Rendering a heterogeneous list of objects in rails that includes arrays
I have a collection of Attachments, Notes, and Array of Attachments. For example
@heteroCollection = [Attachment, Note, Note, [Attachment, Attachment, Attachment]]
In my view I attempt to render ...
0
votes
0answers
22 views
Rails 3.2.13 whitespace in ERB view
I've a problem with an ERB view with this following code :
<% for c in @contactsTo %>
<% @contactCourant = c %>
<%= render 'ui/partials/contact_nouveauMail' %>
<% end %>
If ...
1
vote
1answer
43 views
Is it necessary to build Rails views when using Ember.js?
I'm updating a Rails app to utilize Ember.js. Those views that existed within the app prior to integrating ember still work fine, but I've also added several new views. These views have all the ...
0
votes
0answers
39 views
Jquery in a Ember js Application on ie8/ie7 not working
I'm have a problem with this browsers, the application works correctly on a another browsers, but have a problem in internet explorer 8 and 7
SCRIPT438: Object does not support this property or ...
0
votes
1answer
35 views
How to add view option in Ruby?
I currently have allowed admins to delete a user by having
link_to("Delete", admin_path(resource), :confirm => "Do you want to delete this item?", :method => :delete)
How do I add the option ...
0
votes
1answer
42 views
Writing Rails Templates in Pure Ruby
I have a large number of views in my Rails application that both:
Have a consistent and repeated structure, and
Involve the use of helpers that accept large hash inputs.
As such, I would like to ...
0
votes
1answer
40 views
Passing params from view to controller in ruby on rails
This is my view code
_navigation.html.erb
<% if User.current.allowed_to?(:view_repository, @project) -%>
<div style="float: left; width: auto; padding-right: 1%">
<%= ...
0
votes
2answers
45 views
Using a variable as a column name in rails
I'm trying to set up two environments for my site, one on a development server, one on a live one. And I want to dictate which records from the DB can be seen on each server. I've created a file in my ...
0
votes
3answers
64 views
Rails: How can I call a controller's create action without changing views?
I have a view, views/admin/index.html.erb, that has a button on it that I created with the following...
views/admin/index.html.erb
<%= button_to 'Manual Scrape', {:controller => "jobs", ...
0
votes
1answer
19 views
How to remove id & name attributes from rails view helper
Rails generates id and name for select_tag from name argument by default:
select_tag "people", "<option>David</option>".html_safe
# => <select id="people" ...