0
votes
0answers
9 views

Trace/BPT trap: 5 error on Rails

I'm writing a simple application using the Stanford Core NLP gem. My simple HTML form has a text box at "/new", and I render the views in my controller as follows: def create @text = ...
0
votes
1answer
23 views

Rails dependent destroy error

I have a Rails Movie app. With, obviously, a movie table. A movie has_many :comments, :dependent => :destroy and a comment belongs_to :movie. A comment also belongs_to :user so when a new User ...
-1
votes
3answers
48 views

Passing a list from a view to a controller? [closed]

I'm a relatively new Rails developer with a heavy Java/C# background and I'm trying to pass multiple time ranges from my view to my controller. For instance, the user could select the time range ...
0
votes
5answers
29 views

Rails: How to prevent unauthorized access of controller update action

Hi I am new to rails and I am trying to figure out how to prevent unauthorized access to the update action of a controller. I know I could have a before_filer that kicks out people that arent logged ...
0
votes
1answer
52 views

getting the selected value from the drop down in rails

enter code here <h1>Add New Investment Opportunity</h1> <%= form_for Investopp.new do |f| %> <div class="field"> <%= f.label :state_id %><br/> <%= ...
0
votes
0answers
18 views

Relating posts to topics in ruby on rails forum application (high level overview)

Building a forum in ruby for fun and to learn the language. To start this off, i understand basic constructs, but I am very new to server-side languages and am primarily a front-end developer. I am ...
0
votes
2answers
16 views

How to “inherit” a class variable from ApplicationController

I'm a little new to rails. Say I want to do something like: def is_admin? @admin = User.grab(session[:username]).admin end I can define this in the ApplicationController but then I have to call ...
0
votes
1answer
28 views

Rails, one-to-many relationship error in rails console

I need to set up a one to many relationship between my "Teacher" model and my "Robot" model. Each teacher has many robots but each robot only has one teacher. I thought I had it set up properly but ...
0
votes
3answers
63 views

If else statements in .html.erb in views

In rails, I often run into the situation where inside the views I'll do something like <% if @some_condition_previusly_established_in_a_controller %> <div class="one">123</div> ...
0
votes
1answer
22 views

Rails - URL displayed is different from page load

I'm using mobile_detection on a rails 3 app to serve seperate pages to mobile users. I'm doing my testing through a user agent in Safari. The problem is on one of my processes, rails posts a different ...
0
votes
1answer
49 views

How to create Categories in Rails

i'm trying to Add Categories to my Rails app, but don't quite know how to do this. I have many Pins(Images) and want the user to be able to assign a category on those Pins. ASSIGN not create, edit, ...
0
votes
0answers
13 views

How to pass complex data from method in model to controller

I'm trying to implement a search function on my rails app. The user searches for the name of an instance of foo (or multiple foo names.) ie, find foo1 and foo2 and foo3. Each search term (such as ...
0
votes
1answer
34 views

rails getting value from view to conroller

Having an issue getting a value from a form to the controller. I am using rails 4.0. My view looks like this (new.html.erb) <h1> POST A NEW LISTING </h> <% if current_user.nil? ...
0
votes
0answers
26 views

Creating a belongs to association on a two way Many to Many

QUESTION: How would I create an association be between the a new model: post.rb and existing 2 models: category + work models? And how would I pluck the post.rb's attribute content:text, so that I ...
0
votes
2answers
19 views

rails form_for nested data doesnt show up

New to rails and getting confused on how to handle this. I am using rails 4. I am very stuck here and will try to talk through this problem. I have a listings page which I am trying to add tags too. ...

1 2 3 4 5 59
15 30 50 per page