Displaying 20 results from an estimated 30000 matches similar to: "activerecord - rendering html"
2006 Jul 05
8
loginGenerator - getting logged in username
i am working on a site taht uses loginGenerator..
it''s a great little package, but i am running into one little problem..
i would like to have something that says:
"logged in as <username>" in the site, but i am not quite getting it..
what i am using is:
<p>You are logged in as: <%= @session[:user] %>
but i have tried:
<p>You are logged in as:
2008 Apr 15
4
ActiveRecord::StatementInvalid in BlogController#index
Hello. I''m trying to do the video tutorial "how to build a blog engine
in 15 minutes with ruby on rails" from the main rubyonrails website,
and I''m getting an error when I try to use scaffold :post after
editing my config file for the mysql database.
Here is the exact error I''m getting:
ActiveRecord::StatementInvalid in BlogController#index
2006 Jul 13
3
not quite getting ajax to work..
this might not be an ajax problem.. but i am stumped..
to cut out all the mess, here''s what i have
a controller with this code:
def test
render(:layout => false)
@data = params[:newOpp]
end
a partial which contains a form that has a button like this:
<%= submit_to_remote("confirm","Confirm Entry", :url => {:action =>
2010 Aug 03
2
Strange error message when rendering the scaffold form
Hello everyone, I am developing my application and I created a
scaffold called listas, but when I acess /listas/new I get this error
message:
NoMethodError in Listas#new
Showing /home/rodrigo3n/code/listeiroo/app/views/listas/_form.html.erb
where line #15 raised:
undefined method `deep_symbolize_keys'' for nil:NilClass
Extracted source (around line #15):
12: <% end %>
13:
14:
2006 Jul 26
3
newbie: Scaffold doesn''t pickup DB changes
I''m following along with the depot example in ''Agile Web Development'' and ran into a problem with Scaffold. I changed the MySQL table structure to add a few columns directly and also tried the migrate script to change the database after I got the initial scaffolding to work. However, I can''t seem to get the new columns to show up and am stumped as to how I can
2007 Jul 26
0
rspec_on_rails magical incantations
I ran into something really puzzling today. I don''t know exactly why
it''s happening, but I thought I''d share my experiences.
I started a dummy app just to test an idea outside of the context of
my real work today. So, I quickly get things started:
* rails junk
* cd junk
* ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/
CURRENT/rspec
* ruby
2008 May 21
2
Scaffolding and ActiveRecord in Rails 2
Hi,
Is is possible to add this constraint: "null => false" and "limit => 45"
like below:
create_table :movie do |t|
t.string :name, :null => false, :limit => 45
end
...just by using this kind of scaffold command (on Rails 2)?
$ ruby script/generate scaffold Movie name:string
Thanks,
D.
--
Posted via http://www.ruby-forum.com/.
2010 Jul 20
1
[LLVMdev] Rendering MachineFunctions as HTML.
Hi All,
I've developed a pass to render machine functions as HTML pages with some
accompanying information about liveness and register pressure.
Current features:
Renders machine functions, optionally displaying estimated register pressure
for selected register classes, and liveness for selected intervals.
The following command line options can be used to enable and customise the
2006 Mar 09
1
IE HTML rendering problem with wine 0.9.8
Hi! I installed both wine-0.9.8 and wine-0.9.9 and winetools. I've
installed IE 6 using winetools and IE 6 starts just fine but doesn't
render any HTML pages, but instead displays a "HTML rendering is
currently disabled" message.
I did some searching on Google and found this message on the wine-devel
mailing list:
http://www.winehq.com/hypermail/wine-devel/2005/06/0775.html
2006 Sep 02
1
html not rendering apache/mongrel
We are running Apache and Mongrel on RHEL4 and have been experiencing
some interesting behaivor. Sometimes when someone logs into our
application (it uses the acts_as_authencticaed and acl_system2) the
following happens. Instead of the browser rendering the html and
displaying all the form elements corretly as you would expect, it simple
spews back the output without attempting to render. So
2006 Jan 25
4
html special char conversion
I''ve stucked to such problem:
I have html entities in database, after using scaffold I''ve got these
chars not converted (I have strictly " and & in page source). It is what
I need, but after making ./script/generate scaffold modelname
controllername (recreating controller) I''ve got all special chars
converted into entities like (" and others). How can
2006 Jan 05
0
Re: html generated from scaffold
On Jan 5, 2006, at 9:02 AM, Jim wrote:
>
> Question 1: In a scaffold-generated view, wouldn''t it be better to
> generate more user friendly rhtml and code? I mean, it generates a
> loop
> that goes through each column in the database table and generates html
> table columns from these. I''m sure it''s very efficient and has
> hyper-ruby-coolness,
2006 Aug 14
0
rendering RJS template from view
I''m sure I''m missing something obvious, but I''m stumped.
I have a tabbed nav bar with an associated content area that is used
to display query results. Clicking a tab, rebuilds the nav bar with
that tab now highlited, performs the query and renders the results to
a separate div. I''m using an RJS template which calls
page.replace_html with the various
2011 Sep 04
4
same html elements rendering twice on page
hey all,
My index.html.haml:
- wrap do
- page_title "Teams List View"
application_helper.rb:
def page_title(title)
content_tag :h1, title
end
def wrap(&block)
concat(content_tag(:div, capture(&block), :class =>
"generic_header"))
end
I load in browser and get:
<div class="generic_header"><h1>Teams List
2006 Jun 06
4
Rails keeps adding the letter s to the MySQL tablename.
I followed this tutorial for Ruby on Rails...
http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=1
Everything went fine. I created the DB in MySQL and tested the
recipe/new and recipe/list functions, and all went smooth.
Now I''m trying to use Ruby on Rails to track software licenses here at
work and I keep running into this strange problem. I am setting up the
DB,
2008 Mar 15
3
Message: "HTML rendering is currently disabled"
I have installed Firefox and IE 6 as well as Quicktax 2007 under wine 9.57. Firefox works OK, but I cannot start either IE6 or Quicktax. The first few messages on the console when starting IE6 are:
fixme:shell:StopWatchMode () stub!
fixme:ole:CoResumeClassObjects stub
fixme:shdocvw:go_home stub
fixme:urlmon:URLMonikerImpl_BindToObject use running object table
fixme:win:WIN_CreateWindowEx Parent
2018 Oct 29
1
disappearing paragraphs in html rendering of text from Rd macros
Recent changes in R-devel seem to change the HTML rendering of text returned by Rd macros,
in that now empty lines do not cause paragraphs to end (the empty lines are kept but <p> tags are not set).
As a result, multiple paragraphs are output as a single one.
A complete example Rd file is at: https://github.com/GeoBosh/reprexes/blob/master/disappearingParagraphs/a.Rd
rendered (2018-10-28)
2008 Jul 03
4
HTML rendering is currently disabled
I am using Ubuntu 8.04 and Wine 1.10. Before installing Wine I had installed Firefox 3.0 final release for Linux as instructed on the Ubuntu site. It said not to uninstalled the version of Firefox that came with Ubuntu because it may break Gecko and other things, so I didn't uninstall it.
I've now installed Wine 1.10 and have installed one application, however, it gave me a prompt to
2010 Jul 24
3
HTML rendering is currently disabled (Wanna' play GUNZ!)
Okay, I'm a super super-dee-duper newbster. Aaaaand I'm on a MacBook. Aaaaand I'm running Leopard (10.5.8). So I've used Wine before a loooong time ago for some things, but nothing big. And now I want to play Gunz (from ijji.com). I got everything downloaded (the reactor) and then it tells me something about "Gecko" needing to be installed. I get everything all installed
2008 Jun 28
1
HTML rendering disabled, Wine not in GNOME Menu
I just installed Wine 1.1.0. I have tried previous versions in the past and got them to work. However, this time, when I try to launch iexplore, it doesn't install Gecko. The progress bar instantly fills up and I'm left with "HTML rendering is currently disabled". So I can't get Steam to work.
Also, I can't get my Wine in the GNOME menu. It doesn't even show up as a