Displaying 20 results from an estimated 42 matches for "buntin".
Did you mean:
bunting
2006 Feb 21
7
Validation issues
...7: <option value="" selected="selected"></option>
18: <% for @focus in @focuses %>
19: <option value="<%= @focus.id %>"><%= @focus.name %></option>
20: <% end %>
21: </select>
Seth Buntin
Web Resources Coordinator
Kentucky Academy of Technology Education
Murray State University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060221/dae6adf0/attachment-0001.html
2006 Feb 17
4
Why doesn''t this work!
...andard in @tech_standards %>
<option value="<%= @tech_standard.id %>"><%=
"#{@tech_standard.category}
#{@tech_standard.point}.#{@tech_standard.subpoint }" %></option>
<% end %>
</select>
Am I missing something?
Seth Buntin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060217/664ffd71/attachment-0001.html
2006 Mar 04
7
Get ID after save
This is simple (I am sure) but how do you get the id of the inserted
element after the element has been save?
I thought it was something like this:
@product = Product.new(params[:product]
if @product.save
add_image(product.id, params["image"])
flash[:notice] = ''Product was successfully created.''
redirect_to :action => ''list_products''
end
2006 Feb 10
3
RoR, Apache 2, FastCGI
...and I am really excited about learning Ruby
and Rails. But whenever I access my different defs in my controller it
takes ~ 5 seconds before they are returned. I am working locally so I
don''t know what the issue is.
System Details:
Windows XP
Apache 2.0.55
Ruby 1.8.2
Rails 1.0
Seth Buntin
Web Resources Coordinator
Kentucky Academy of Technology Education
Murray State University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060210/cd56f366/attachment-0001.html
2006 Feb 13
7
Concatenation
I have this:
<%= @tech_standard.category + " " + @tech_standard.point + "." +
@tech_standard.subpoint %>
I get this error:
cannot convert Fixnum into String
point and subpoint are number.
How do I concatenate those values?
Seth Buntin
Web Resources Coordinator
Kentucky Academy of Technology Education
Murray State University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060213/3a8d807f/attachment.html
2006 Mar 01
2
Help with Many-To-Many insert
...le via:
@resource.core_contents << CoreContent.find(params[:core_content_ids])
But I get this error:
Mysql::Error: Duplicate entry ''0-0-0-0-0-0'' for key 1: INSERT INTO
core_contents_resources () VALUES ()
What is the problem?
Thanks for the help.
Seth Buntin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060301/94fa1a5f/attachment-0001.html
2006 Feb 21
4
Error, got String?
...) table has a one-to-many relationship with the resources
(has_one :focus) table (A resource will have only one focus but one
focus will have many resources). I assume this error means that the
focus is looking for a string (I am sending an integer, focus_id). What
do I do?
Thanks.
Seth Buntin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060221/16a61887/attachment.html
2006 Feb 17
2
Helpers?
...that is used over two controllers (admin and login).
Each controller has their own navigation. Can I do something like this?
<%= getNavigation("admin") %> or <%= getNavigation("login") %>
And return the navigation list depending on the string sent?
Seth Buntin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060217/99df4197/attachment.html
2006 Mar 16
3
ACLSystem and session variables
I am using the ACL System that is described on the Rails wiki and I have
a quick question. I want to set the "role" as a session variable so
that I can display certain navigation schemes and I was doing it like
this:
@session[:user][:role] = @user.roles
When I print out this variable I get:
#<Role:0x3262d80>
How can I turn this into a readable value? I tried .to_i
2006 Feb 21
4
Select error
...select(:resource, :type, %w{ Web Data }, { :include_blank
=> true }) %>
7: </p>
8:
9: <p><label for="resource_focus_id">Focus</label><br/>
I took it straight out of the Agile Web Development book (except the
:include_blank)
Seth Buntin
Web Resources Coordinator
Kentucky Academy of Technology Education
Murray State University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060221/0a23e0bb/attachment-0001.html
2006 Mar 17
7
OT: Subversion folder cleanup
How do you clean up your app folder to place onto the server? I want to
get rid of all the .svn stuff.
Seth Buntin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060317/cc81d9f7/attachment.html
2006 Apr 10
2
Fix log files
What is the code I include in one of my files so that my log files are
easier to read? I am using Windows.
Thanks.
Seth
--
Posted via http://www.ruby-forum.com/.
2006 Feb 22
2
Select menu validation
...t;resource_type">
<option value="" selected="selected"></option>
<option value="Web">Web</option>
<option value="Data">Data</option>
</select>
</p>
Seth Buntin
Web Resources Coordinator
Kentucky Academy of Technology Education
Murray State University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060222/0bfacba7/attachment.html
2006 Feb 28
1
Accessing form array when errors display
Is there a way to access (from JavaScript preferably) the form array of
the information sent when errors are display? I want to be able to find
out what values were selected on the form before errors.
Seth Buntin
Web Resources Coordinator
Kentucky Academy of Technology Education
Murray State University
On March 1, 2006, Murray State University will begin moving all of its
telephone numbers in the 762- exchange to an 809- exchange.
My new number will be (270) 809-4207
-------------- next part ---...
2006 May 30
4
Hide parent element
I have some code that calls a partial to display one or more blocks
within a div tag. I want to have a close button (or cancel link) that
will fade that block but leave the others. Here is the code:
LINK:
<%= link_to_remote "Add Miscellaneous Link", :url => { :action =>
:add_iyc_link } %>
add_iyc_link.rjs:
page.insert_html :bottom, ''links'', :partial
2006 Feb 15
3
Applying list-item format depending on action
What would be the best way to do this? I have a list and I want one
item to be underlined (depending on the action that I am on). Do I?:
Have a bunch of if statements:
if :controller => ''admin'', :action => ''list''
<li id="current">Pages</li>
else
<li>Pages</li>
end
What do you think? Is there a
2005 May 06
1
CAPI on ptp with variable length digits in phonenumber: SOLUTION for EICON
...sk-Users] CAPI on ptp with variable length digits in phonenumber
hi again,
just ignore my mentioning of the sirrix-cards, just realised you have a PRI, i
overread it and thought you had a BRI. so i think your last hope is a
zaptel-card.
regards,
Am Freitag, 6. Mai 2005 13:04 schrieb Sebastian Buntin:
> Hi!
>
> we have a german PtP PRI connection here.
> our old telephone system was programmed to accept digits by variable
> length.
> so our MSN, assigned my telco is, lets say: 123
> and we can use first digit from 0-4. and every further digit like we
> want.
> means:...
2006 Jun 22
3
Compare against array
I have a database field called file_type. I want to compare it against
an array of types to either display it as an image or just create a link
to it. I am sure there is an easy way to do this but I can''t think of
it.
I don''t want to do this:
<% if resource.file_type == ".png" OR resource.file_type == ".jpg" ...
%>
I would like to do:
<% if
2006 Mar 10
3
installing rails 1.0 on Windows
I ran the gem installer and it seemed to work, but i believe i''m still using
an older version. How can i tell what version I''m really using?
Thansk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060310/435006b0/attachment.html
2006 Feb 13
2
Scaffolding
So what is "best practice" using scaffolding and then manipulating it to
work for you or starting from scratch?
Thanks.
Seth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060213/0f16d567/attachment.html