Questions tagged [activeview]
32 questions
0
votes
1 answer
Attribute not Backed by Database not Updating
I'm trying to create a User model for my Ruby on Rails app that has a password field that is not saved in the database, but for some reason, it's not being updated correctly.
class User < ActiveRecord::Base
attr :password
validates_presence_of…

Kyle Sletten
- 5,365
- 2
- 26
- 39
0
votes
3 answers
C# MultiView SetActiveView by ID not working properly
I'm currently trying to figure out what's wrong with my code:
Doesn't work
if(...){
...
}else{
someVariableAsString = "myValue123";
MultiView1.SetActiveView(My3thView_ID_In_MultiViewControl);
}
Works
if(...){
... …

Henry
- 1
- 1
- 1
0
votes
1 answer
Rails has_and_belongs_to_many association
so I have two models:
class User < ActiveRecord::Base
has_and_belongs_to_many :followed_courses, :class_name => "Course"
end
class Course < ActiveRecord::Base
has_and_belongs_to_many :followers, :class_name => "User"
end
in User.rb, I also…

randomor
- 5,329
- 4
- 46
- 68
0
votes
1 answer
Login form not displaying as expected
Here's what I have in views/users/sessions/new.html.slim
.container
= form_for(resource, as: resource_name, url: session_path(resource_name), html: {class: "form-signin"}) do |f|
h2.form-signin-heading
=…

EastsideDev
- 6,257
- 9
- 59
- 116
0
votes
1 answer
Why does ActionView's "select_tag" escape the HTML in its "options" argument when called directly?
So I've been going through the very poor documentation that exists for ActionView, particularly a method called select_tag that just exists when called from view files. Supposedly, it's called like this:
select_tag name, option_tags, options
The…

Throw Away Account
- 2,593
- 18
- 21
0
votes
2 answers
dimiss modal and return to presented childViewController in containerView
I am having a bit of an issue with dismissing a modal view presented from a childviewController in a container view. I have a UINavigationController as the rootViewController (MainNavigationController), and present a modal from one of the…

user3708224
- 1,229
- 4
- 19
- 37
0
votes
2 answers
access ActionView helpers from inside the Model
I have a simple template system which calls a show_me method defined inside different classes of my model (kinda Widgets) when rendering a template. These widgets originally returned the html as a string. So in my erb I have somethink like this.
<%…

Mauricio
- 5,854
- 2
- 28
- 34
0
votes
1 answer
How to manipulate date_select to show customized months? Rails
I need my date select form field to show users only the future dates (like for eg. today is 7 apr 2016, then it must show all dates beyond 7 apr 2016) and for month field it must only show the current month,year(any)
<%= f.date_select…

Nischay Namdev
- 553
- 7
- 23
0
votes
1 answer
MultiView And JavaScript (or jquery) Working
how can i get multiview in javascript or jquery ?
below code always returns null : (Javascript)
var MultiView = document.getElementById("MultiView1");
and below code is not null but not work :(jquery)
var MultiView = $("*[id$='TextBox1']");
what…

SilverLight
- 19,668
- 65
- 192
- 300
0
votes
1 answer
Routing Error: No route matches [GET] /image/my_image.png
I am generating image tags from within one of my models and I can't get Rails to create working URLs in both development and production mode simultaneously. I started out with this in one of my models:
def traffic_light_icon(size=15)
image_tag…

Dan
- 778
- 11
- 18
0
votes
1 answer
Powerpoint VBA Make duplicated shape view active to select for grouping
I have a library of eight images on my PowerPoint slide. Based on a userform input, some of the components get duplicated and renamed by adding a "1" or "2" after the original image's name so that they are differentiable. I then want to group the…

KevinJ25
- 3
- 2
0
votes
1 answer
ActionView: options_from_collection_for_select in rails view
I have select view in my rails project and it works properly. I wanna add a future but I can't do it.
Here is my controller code:
def new_feedback
@campaigns = Campaign.all
render "new_feedback", layout: false if request.xhr?
end
Here is part of my…

thatway_3
- 404
- 1
- 10
- 22
0
votes
1 answer
fields_for to stop pluralizing
I have a fields_for tag, where I specify the prefix (lets say for some good reasons), and this is supposed to represent a one-to-one relationship.
I am trying to represent a relationship
widget has_many thingamagigs
thingamagig has_one…

Dmitriy Likhten
- 5,076
- 7
- 36
- 47
0
votes
1 answer
I have a deeply nested relationship and I want to create a form to access different parts
user_relation.rb
14 class UserRelation < ActiveRecord::Base
15 belongs_to :user
16 belongs_to :with_user, :class_name => "User", :foreign_key => :with_user_id
17 belongs_to :group
18 has_many :evaluations
19 has_many :ratings,…

toolz
- 871
- 6
- 12
0
votes
2 answers
Nested forms in Rails with dynamically created objects
I'm looking for a way to create a form for a has_many association so I could be able to set dynamically the amount of objects that would go there.
So far I saw examples when you initialize the association with blank objects, like this:
2.times {…

Misha Slyusarev
- 1,353
- 2
- 18
- 45