Displaying 20 results from an estimated 4000 matches similar to: "Weird problem related I am having with scaffold"
2007 May 01
5
Problem with threads
Hello,
Any ideas how to make frames not to freeze when running events? I tried
using threads, but they won''t finish, and when using Thread.join the
effect is same as not using threads at all (= gui freezing).
Thanks,
Raine
2006 Mar 23
6
easy scaffold question(s)
I''m doing very well with the Hibbs Rolling on Rails tutorial. I have an
easy question for my personal notes. I''m coming up with a simple framework
of steps for creating a basic database. It includes the following maxims to
make original app creation easy:
app_name = MySQL database name
SQL_tablename = model_name
model_name = controller-name
Is this going to work for getting
2006 Feb 09
13
Howto work with a page not generated by the scaffold ?
I am a newbie Ruby and RoR user. In my tests using the turorials that
I found over the web, everthing is working fine and I am very impressed
about RoR framework.
As I am a Delphi developer, without any web development experience,
There is some thing hard to understando and I didn''t find a tutorial
about this.
I wonder how to create a non-scaffold page ? I have customers,
2012 Apr 25
2
Rails 3.1 - Scaffolding Files
Where can I find more information about the new syntax on these:
<%- model_class = @product.class -%>
<h1><%=t ''.title'', :default => t(''helpers.titles.new'', :model =>
model_class.model_name.human,
:default => "New
#{model_class.model_name.human}") %></h1>
<%= render :partial =>
2010 May 10
7
NilClass passed to partial view
Hi,
I have a simple program that tries to do something really basic.
First, I have a company Model :
-------------------------------------
class Company < ActiveRecord::Base
has_one :billingAddress, :foreign_key=>"id", :class_name=>"Address"
end
Then I have the address Model :
--------------------------------------
class Address< ActiveRecord::Base
belongs_to
2006 May 09
2
newbie: OSX Ruby/MySQL issue?
I''m three pages into the OnLamp RoR Tutorial [1] and am wrestling
with what appears to be a MySQL connection problem.
I''ve created a simple controller called "recipe" with a corresponding
"recipes" mysql table. The recipe controller is just a simple scaffold.
When I browse to "recipe/new", though, I get these errors:
==
NoMethodError in
2007 Apr 01
12
How to List Records in Descending Order?
I am brand-new to RoR and have only followed and replicated the few
tutorials that are out there.
I have searched and searched, but cannot find an answer to this simple
question:
How can you list records in descending order?
I have the cookbook example loaded, but can''t seem to list the recipes
in reverse order (by the primary key - id).
Thanks ahead of time for any and all help.
--
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,
2006 Feb 27
8
Newbie question - Automatically update _form.rhtml?
Hi all, I''ve got an odd issue. I''m new to Ruby/Rails and have a bit of a
silly question. I''m following along with the nice little tutorial here,
to get an idea of the system:
http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=3
However, I''m running into an issue where the author adds a new field in
his database, refreshes the browser and shows
2005 Feb 27
12
Four Days on Rails
There are a number of really good beginner''s guides to Rails on the web
now - covering installation through to running the first ''scaffold''.
However, as a complete Ruby newbie, I found the next stage - moving on
to producing ''real'' applications - quite hard going.
To help others make the same journey, I''ve put together a ''next
2005 Mar 18
0
scaffold generator, pluralization and tutorials
Hi
All the tutorials call their controllers ''TodoController''[1] or
''RecipeController''[2] (singular),
but "script/generate scaffold Recipe" for example generates
a ''RecipesController'' (in recipes_controller.rb)
As I''m rather new to RoR I don''t know if that convention changed,
I read something about it here:
2006 Jan 04
4
file_column
I use file_column and it works fine.
I tried to change the store_dir to a the path I want my files to be
stored and not the default.
I stored some images fine. But when I try to reach my images it seems
like file_column uses the model_name/attribute_name on the image and not
the store_dir I used. How can I change this ?
Thanks in advance
--
Alexander Antonakakis
2006 Mar 17
4
Noob question about the "show" function
i''ve got a cool app going and it''s getting bigger and bigger, but now
i''m trying to customize the show function. i''m using the scaffold code
as a base but can''t seem to get anything to look right. i guess i''m
confused about how exactly the scaffold code works for the "show"
function. any help would be awesome! thanks.
jon
--
2006 Feb 25
31
Ajax Scaffold Generator for Rails Released
I just released a whole new version of the Ajax Scaffold Generator (for Ruby
on Rails). The generator creates a scaffold page like the typical rails one,
except adding, editing and deleting are all done inline. The generated
scaffold is valid XHTML strict and fully styled right out of the box.
Check out the demo:
http://ajaxscaffold.height1percent.com/
And the how-to:
2005 Mar 04
2
Part 2 of ONLamp.com Rails article is online
ONLamp.com has finally published part 2 of my Rails article! You can find it
here:
http://www.onlamp.com/pub/a/onlamp/2005/03/03/rails.html
It would be really nice if we could get this slash dotted again before the
weekend.
>From what I understand, you''re more likely to get accepted when multiple
people submit something. So, to anyone who has the inclination: if you would
submit
2010 Apr 02
7
Liebert GXT2 NUT driver
Hi guys,
I found the troblue and fix it!
I attached the patch.
The trouble was in the command reply buffer use.
You compute the value that value = reply[6]*256+reply[5] <- it's wrong
The right solution: value = reply[5] * 256 + reply[6];
And other bug,
battery.runtime compute, you divide this value 60 <- it's wrong
right value: divide 1.0
I continue the work on this
2006 Apr 18
4
how would you take the duplication out of this?
i have these two really similar methods in my addressbook controller.
def edit_company
@company = Company.find(params[:id])
if request.post? and @company.update_attributes(params[:company])
flash[:notice] = ''Company was successfully edited.''
redirect_to :action => ''show'', :id => @company
end
end
def edit_person
2006 Apr 27
3
collection_select to display 2 fields
I''m trying to get a collection_select generated Drop-down box to display
two fields from a table (first name & last name); however, I am having
trouble concatenating the symbols. It appears as though any code I put
in the 5th argument for collection_select is processed prior to
executing the collection_select method. The code executes successfully
with 1 symbol in the 5th
2006 Jul 06
3
Accessing form field contents
I have an HTML form on the screen, that is connected to a database
(standard Ruby way). I found that there are people that would rather not
fill in this information, but would rather search Amazon for the info.
Therefore, I added a link to the right of one of the fields that, when
pressed, will search Amazon for what ever you typed into that field.
So, how can I do that? At first I tried
2006 May 08
4
Asterisk documentation..
Where can I get some asterisk books.. or tutorials..? I?ve been searching in
google.. but I find just some tutorials explaining how to fast set up an
asterisk server. I want to learn how to use it and how to make my own
configurations. So, the thing is that I want to know what is the best book
or tutorial that you know? recomendations? Thanks to everyone...
Danko Miocevic