Displaying 20 results from an estimated 1000 matches similar to: "The no-framework PHP MVC framework"
2006 Aug 11
3
General architechture / MVC question
Hi all,
A newbie with Ruby on Rails - and programming in general - I''m working
on a few Flash and PHP projects as well. Partly to make my work more
efficient, partly to gain a better understanding of system architecture
/ design patterns, I''ve been trying to use the MVC pattern in
database-backed Flash / Actionscript development as well.
I think / hope that I''m
2006 Jun 08
3
MVC and Pagination
Just wondering how to best integrate with pagination and still stick to
MVC...
Say I have a Post model that has a published attribute. I want to show
all the recent published posts on a page.
My first instinct is to create a method in the Post model called recent
that does the find with proper conditions and order, but the problem I
have is how do I use that with pagination (which definitely
2006 Apr 23
8
Shattered, the rails-based MVC game development framework
if( you_want_to_make_a_game_with_ruby ) {
http://shattered.hastilymade.com/shattered_ruby.png
http://shattered.hastilymade.com/shattered_ruby.png
http://shattered.hastilymade.com/shattered_ruby.png
Shattered 0.3 has just been released! Inspired by Ruby on Rails, Shattered
is doing for game development what rails has done for web development.
Get it here !
We''ve made this
2006 Feb 25
1
checkbox helper question
I used scaffolding, then modified. As an after thought I added a
"boolean" checkbox to my database, form with this tag
<p>
<%= check_box ''is_hot_item'', @photo.is_hot_item %>
<label for="is_hot_item">hot item?</label><br>
</p>
I check it and save. But I don''t get 1 saved in my database field.
:(
I have just the
2006 Mar 26
7
MVC Design
Hello I have been using LAMP for the last 6 years and i am now finally
making the choice to move over to RoR. This MVC stuff is all very new to
me. As i have no trouble understanding ruby code... or any code for that
matter.. my challange comes in getting my head around the MVC stuff. Is
there any demos articles that you guys have seen that takes a site or a
business breif and explains where
2006 Aug 01
5
MVC question
Should I create a separate controller for each model or should I use 1
controller for all models?
Having 1 "admin" controller for all backend stuff seems logic to me, but
when I scaffold it rather makes 1 controller per model.
I''m fairly new to the MVC pattern, so what''s the prefered way of doing
it?
I''m also wondering if the API is up to date? When
2006 Feb 06
4
Basic MVC in RoR question
Ok, Here''s my controller:
def create
trainingplan = Trainingplan.createplan(@params[:startdate],
@params[:enddate], @params[:hoursperweek], @params[:programtype])
end
My model is:
class Trainingplan <ActiveRecord::Base
def self.createplan(stardate, enddate, hoursperweek, programtype)
stardate = startdate
enddate = enddate
hoursperweek = hoursperweek
programtype
2006 Mar 03
13
Listing help
Hi,
I''ve created a Rails application and am having a problem listing by a
particular category in an associated table. I followed the instructions
found at the O''Reilly tutorial
(http://www.onlamp.com/pub/a/onlamp/2005/03/03/rails.html?page=3) but have
not had success. Can anyone please outline a better set of instructions
than in the "Showing Recipes in a
2006 Jun 22
2
MVC architecture
Hi,
I want to creat a GUI accessible via the web with ruby to interface some
matlab implementation ... so I extended Ruby with C++ and then matlab :)
that works perfectly: I have finaly a Ruby class I can call whenever I
want to lunch my matlab algorithm ;)
the point is now I have to make the GUI in HTML with Rubby on rails and
Damn! I don''t get how works the MVC architecture in Ruby
2006 Oct 20
7
MVC and modules. Views telling models to behave
I was thinking today, it would be nice if a view could tell a model how to
format it''s data for that particular view.
Kind of like, the view is bestowing instant, and temporary knowledge on the
model for the duration of the views run.
It seemed to me that this would be more objecty than say a helper that
formats a string
format_my_string( my_string )
Instead, in my view. Lets assume I
2006 Mar 06
1
Revision 3637 killed support for models in modules?
Hi,
My app uses modules both for controllers and models (in order to make
the app installable with any other Rails app without conflicts). In
revision 3636, everything worked just fine, but in 3637 something very
odd happened. On the _first_ request to the server, the page loads
fine, but any request _after_ that dies on Uninitialized Constant
errors, referring to my models in modules. This error
2005 Dec 20
12
How to model "Expense Report" in Rails MVC
1st: I am a newbie to Rails & to pure OO.
Q: I want to use rails for creating a "master-detail" form. page layout
will allow users to type in an "expense report header" and as many
"expense report lines" as they need to. I understand how to wrap the
final submit action using "transaction" to ensure the inserts to the
database happen within the same
2006 Jul 31
5
can someone explain RoR MVC from a C++ or Java perspective?
is a model similiar to a class? and active record is similiar to how
Java classes inherit from Object?
View is nothing more than an output of a model with HTML?
Controller is basically the Main part of the program?
--
Posted via http://www.ruby-forum.com/.
2006 Jan 17
30
MVC design good/bad
I am curious what you find is good and bad MVC design.
Let''s use the find and find_by_sql methods as examples.
Currently I have these spread out all over the place...
View: here I have some find methods when I am for example populating a
select list with choices in a form.
Controller: here I have the simpler find methods.
Model: here I have the more complicated find methods (usually
2005 Apr 19
5
Rid me of this boot GUI
One of these days, RedHat might actually run me off!!!! AAAARGH!!!!
Can anyone tell me how to get CentOS 4 to simply boot to the console in
text mode? If I wanted a stinkin' GUI I would have installed winders!
Now, my KVM and 25 foot cord is just too long to send a GUI signal
across the room and I'm missing 50% of the screen.. striped vertically..
at about 1/8th inch spacing. Not
2001 Mar 27
2
How do I change the editor in R command window?
Dear R-help,
I have started using R on my Linux box (Debian), and I have some
problems with setting the editor/keyboard for R. The
For instance, arrow-up gives "^[[A", and delete gives "^H". I have a
Norwegian keyboard, but that doesn't cause any
problems for editors like emacs. Could you advice me on how I can set
the editor for R right? I have tried
2013 Feb 28
3
Hidden information in an object
Hello, The dataset "cats" contain information about the heart weight ("Hwt"), body weight ("Bwt") and gender ("Sex") of a group of 144 cats. I write the following piece of code: library(MASS)attach(cats)ratio <- Hwt/Bwtmale <- ratio[Sex == "M"]female <- ratio[Sex == "F"] My question is, when I look at the object
2002 Aug 12
4
Simple and Stupid Share...
Hullo, All...
I have HPUX 10.20 with SaMBa 2.2.3a installed... All I want to do is
make a single share with read only access for everybody, no matter the
user people are using, in other words, they don't need to have the user
on the server side.
I tried to setup, with no success. Anybody knows something?
Thanks...
2002 Aug 13
1
RES: Simple and Stupid Share...
for your information, it didn't work... it needs a password... but i don't
want to send any password... any ideasd?
-----Mensagem original-----
De: Rasmus Reinholdt Nielsen [mailto:rasmus@narani.dk]
Enviada em: segunda-feira, 12 de agosto de 2002 17:34
Para: Demerson Zounar; samba@lists.samba.org
Assunto: Re: [Samba] Simple and Stupid Share...
# Global parameters
[global]
2006 Jun 21
0
rails MVC
Bonjour a tous,
voila j''ai quelque soucie a comprendre comment s''enchaine les appels de
la vue/controleur/model dans Rails :(
j''ai une classe qui me permet de faire la liaison entre ruby et c++ (ca
marche parfaitement) que j''ai mis ds le repertoire model (je ne l''ai pas
cree avec generate parce que je ne veux pas de BD! et j''avais