Displaying 20 results from an estimated 100 matches similar to: "tag helper"
2010 May 02
8
dev tool
Can anyone suggest a development tool for RoR? How is the plugin for
Eclipse?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2009 Jul 07
10
link_to, how do you combine url options and html_options?
I have a link-to that I wish to look somewhat like this:
link_to "link here", new_object_path,
:method => :post, :confirm => ''Press OK'', #url
options
:class => "css_class", :id => "css_id" #html
options
In any case I can either get the url_for options to work or the html
options to work, but
2011 Jan 24
1
segmentation fault on RMagick2
Hi, I''m getting this error when I try to create a migration file:
$ script/generate migration create_session
/Users/administator/.gem/ruby/1.8/gems/rmagick-2.13.1/lib/
RMagick2.bundle: [BUG] Segmentation fault
ruby 1.8.7 (2010-12-23 patchlevel 330) [i686-darwin10]
Abort trap
I''m not sure how to solve it. Any ideas?
--
You received this message because you are subscribed
2008 Oct 07
6
Hpricot loop question to read table row values
Hi.
I''ve got a file that contains a table that looks like this:
<table>
<tr><td>column title a</td><td>column title b</td></tr>
<tr><td>row 1 a</td><td>row 1 b</td></tr>
<tr><td>row 2 a</td><td>row 2 b</td></tr>
<tr><td>row 3 a</td><td>row 3
2010 Mar 18
8
hash in controller is nil after submitting form
I''m trying to create a data entry form but getting an error when it
sumbmits. I am using an hash to get the names of the fields definied
in the controller''s "new" function:
def new
@thing = thing.new
@columns = Hash.new
@columns[''thing_general''] = [
["title","name"],
2010 Mar 31
5
undefined method `each' for "":String
I implemented creating an object within another object according to
this Railscast:
http://railscasts.com/episodes/74-complex-forms-part-2
but I''m getting this error after I submit. Any ideas?
undefined method `each'' for "":String
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this
2010 May 04
2
Encoding problems, applying a patch, how to???
So, i''m facing issues with encoding, since I need to write an
application in portuguese-brazilian.
This is the error i''m getting: "incompatible character encodings:
UTF-8 and ASCII-8BIT"
The curious thing is that i have a few other views with "special"
characters, like Á or Ç, and all of them works. I have saved this view
using the UTF-8 char encoding and
2011 Nov 04
1
apostrophes
My database is in utf8 but apostrophes are showing up as ’ in my
templates. How can I fix this?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2010 May 07
1
undefined method 'find_by_sql'
Why would I get an undefined method `find_by_sql'' for #Example:
0x981a4e4> for error when trying to use the find_by_sql method in my
model?
def init_dictionaries
tables = find_by_sql( "SHOW TABLES FROM thesaurus" )
@@tables = tables.collect{ |t| t.Tables_in_thesaurus }
end
--
You received this message because you are subscribed to the Google Groups "Ruby
2010 Mar 16
4
Get content from HTML element in Rails
Hey,
I''m looking for a way to get the content of my div in my Rails view. I
would like the literal HTML content, so only HTML and no Rails
I thought inner_html would work, but I get a RJS exception (TypeError:
$("content").innerHtml is not a function)
Does anyone know how I can get the content? Thanks!
In my controller I use this code:
[code]
def save_test
render :update
2010 Apr 12
3
$(link).previous("input[type=hidden]") is undefined
I am getting this error when trying to use the remove link explained
in the Railscast:
http://railscasts.com/episodes/197-nested-model-form-part-2
error:
$(link).previous("input[type=hidden]") is undefined
remove_fields()applic...1065175 (line 6)
function onclick(event) { remove_fields(this); return false; }()1
(line 2)
[Break on this error]
2008 May 17
5
Help needed
Hi All,
I am new to rspec and it seems that I don''t understand some basics.
I need to have a XML import which should parse through XML data
and saves all that in various mysql tables. The XML part works just
fine and I can test this with rspec. However when I try to execute
it "should find country object for DE" do
I get an error. @user.country is a one-to-many relation in
2011 Feb 20
7
Using Nokogiri to insert a <span> tag into existing text
All,
I''m using Nokogiri to handle the following problem:
I have a piece of HTML, and for certain text nodes, I need to insert
<span> tags into the text of these nodes at a certain place.
What I am doing is finding the place where I want to insert the <span>,
let''s say index X of the text node''s text, and doing the following:
1) Setting the node''s
2010 Mar 30
2
setting up has_many
Do I have to manually set a column in a dependent table for the id of
the object to which it belongs?
I have a collection of objects called photos that are owned by a
analysis object. When I try to show an attribute of each of the photo
objects I get this error:
Mysql::Error: Unknown column ''photos.analysis_id'' in ''where clause'':
SELECT * FROM `photos` WHERE
2006 Jul 11
1
responds_to_parent plugin
Not sure where I can get help with this one but I getting a wierd
behavior out of safari when trying to use the responds to parent
plugin. Basically I have the following in my view:
<div class="rightsidecontentbody">
<%= form_tag({:action => "create"}, {:multipart => "true", :target
=> "frame"}) %>
<form
2007 Jul 15
3
rejected form not handled
Hello,
I have a login form on /login.php which POSTs to /dorf1.php when access is
granted and to /login.php when it is denied.
require ''rubygems''
require ''mechanize''
agent = WWW:Mechanize.new()
login = agent.get("http://server/login.php")
form = login.forms.action("dorf1.php")
form.fields[2].value = "wronguser" # login
2006 Nov 02
5
RJS error in internet explorer
hey all,
got a rails app i''m finishing up. i have a little ajax on one of my
pages where the person can choose a doctor from a drop down list and if
the doctor isn''t there they can click a link which blinds down a little
form to add a doctor. after they submit that mini-form the page updates
the div which houses the drop-down so the doctor shows up. works very
nicely IN FIREFOX.
2009 Jun 06
5
Rake Tasks
Hi Everyone,
I just need some further help clarifying a custom rake task I''m building
and the logistics of how it should be working.
I''ve created a custom rake task in libs/tasks called scraper.rake which
so far just contains the following:
desc "This task will parse data from ncaa.org and upload the data to our
db"
task :scraper => :environment do
# code goes
2009 Jun 07
17
ActiveRecord Classes
I''m having a little trouble with understanding how to work out the
schematic for some of my classes using ActiveRecord when a file is in my
lib directory:
Brief example:
Here''s the outline of the files in use:
....app
........controllers
............application_controller.rb
............rushing_offenses_controller.rb
........models
............rushing_offense.rb
....lib
2011 Dec 05
12
Using nokogiri
HI,
I want to grab some information about university names, and I found
this term called "web scraping"
I search about it in google, and there are tools in ruby.
One of them is nokogiri but I''m a bit confused because it seems that
it only gets information that its already in an html or xml
I found a webpage that have a list of university names as a
<select>