Displaying 3 results from an estimated 3 matches for "authornam".
Did you mean:
authorname
2007 Mar 21
1
rbind.data.frame reacts on levels without factor (PR#9578)
Full_Name: Lutz Prechelt
Version: 2.4.1
OS: Windows XP
Submission from: (NULL) (160.45.111.67)
I stack a number of data.frames using rbind.
Each of these dataframes has a column 'authorname', which is a factor
and a column author = unclass(authorname) as piecewise pseudonyms.
When using rbind to stack these dataframes, R warns about invalid factor levels
and inserts all NAs in the author column.
The reason appears to be that rbind.data.frame looks for the presence of levels,
not...
2007 Jan 15
1
Flickr.rb - displaying tags
...having a "slow day" but I can''t for the life of me figure out
how to print a photo''s tags using the flickr gem (flickr.rb). Consider
this:
<% @photos.each do |photo| %>
Tags: <%= debug(photo.tags) %>
<% end %>
...Gives the following output:
tag:
- authorname: gmacgregor
author: 62682519@N00
id: 4181224-280985155-130
content: family
raw: family
- authorname: gmacgregor
author: 62682519@N00
id: 4181224-280985155-278
content: portrait
raw: portrait
- authorname: gmacgregor
author: 62682519@N00
id: 4181224-280985155-3840
content: chi...
2006 Feb 13
1
autocomplete input field name
...;bookid" value="<%= @book.id %>" type="hidden">
...
book_controller.rb
class BookController < ApplicationController
auto_complete_for :author, :name, :limit => 5
def addauthor
@book = Book.find(params[:bookid])
@author = Author.find_by_name(params[:authorname])
@book.authors.push(@author)
redirect_to :controller => ''book'', :action => ''show'', :id => @book
end
When I manually enter the right url with variabels (is it english?)
bookid and authorname it works, but when I use the form the name of the...