Read this article and comments
http://techiferous.com/2010/07/roadmap-for-learning-rails/
and here is a resources list
http://www.engineyard.com/blog/2010/resources-for-getting-started-with-ruby-on-rails/
Good luck with that
On Sun, Nov 28, 2010 at 5:39 AM, bonsaiben wrote:
>
>
> On 11月22日, 午後3
On 11月22日, 午後3:07, venkata reddy wrote:
> Hi everybody...
> I am venkey here. very interested to learn ruby on
> rails.Though i have not had any experience with the web development,
> i want to learn ror as quickly as i can.I installed ror successfully.i
> am just starting to bui
On Sat, Nov 27, 2010 at 8:31 PM, David Kahn wrote:
>
>
> On Sat, Nov 27, 2010 at 8:11 PM, Marnen Laibow-Koser > wrote:
>
>> Andre Joseph Cubeta wrote in post #964087:
>> > +1 Edmond, hehe
>> >
>> > @Emmanuel - go for Textmate for a good start if you're a Mac user,
>>
>> Or save the €80 and try Ko
On Sat, Nov 27, 2010 at 8:11 PM, Marnen Laibow-Koser
wrote:
> Andre Joseph Cubeta wrote in post #964087:
> > +1 Edmond, hehe
> >
> > @Emmanuel - go for Textmate for a good start if you're a Mac user,
>
> Or save the €80 and try KomodoEdit.
>
I just tried this too and it is really not bad.. I thin
Sorry, "half-solved", this was the solution:
%link(rel="stylesheet" type="text/css" href="style.css")
Without space between link and ( and in Sinatra /public/ is not necessary,
this is default, so it will find the CSS file there.
Maybe others will have the same problem, so I shared. But JavaScri
On Fri, Nov 26, 2010 at 11:42 AM, Frederick Cheung <
frederick.che...@gmail.com> wrote:
>
>
> On Nov 26, 4:13 pm, Rick DeNatale wrote:
> > On one of the many Rails projects I've worked on over the years, I
> > seem to recall using either a helper or a method on a model to
> > generate a css id ba
Zoltan Gero wrote in post #964407:
> Hello,
>
> how to include CSS file with Haml?
Use Rails' stylesheet_link_tag helper.
> Every way I tried puts the href=...
> infos
> after the tag, not inside, like:
> href="style.css" rel="stylesheet" type="text/css"
You need to learn about how to do attribu
Andre Joseph Cubeta wrote in post #964087:
> +1 Edmond, hehe
>
> @Emmanuel - go for Textmate for a good start if you're a Mac user,
Or save the €80 and try KomodoEdit.
> if
> windows nah' I'm not a fan of any editors sorry for that, or just a
> simple TextPad will do. Even try VIM on linux if wan
Hello,
how to include CSS file with Haml? Every way I tried puts the href=... infos
after the tag, not inside, like:
href="style.css" rel="stylesheet" type="text/css"
In reference I onlye read about JavaScript, not any word about CSS. But
Javascript also didn't worked, how should make include it?
On Sat, Nov 27, 2010 at 6:57 PM, Paul Roche wrote:
> Hi, I'd like to bump this thread if this is ok? My main objective is for
> people to take a look at this error message I get when running 'rails
> server'
Have you googled your error message? I found more than a few
references that professed to
Rick Denatale wrote in post #964140:
> On Fri, Nov 26, 2010 at 12:42 PM, Frederick Cheung
> wrote:
>>>
>> Are you thinking of dom_id / dom_class ?
>
> Yes indeed, thanks!
If you're using Haml, it's even easier: just use the [...@object] syntax.
>
> --
> Rick DeNatale
Best,
--
Marnen Laibow-Kose
Please quote when replying.
Rob Lacey wrote in post #964320:
> Without opening a debate on the issue. I find the whole bad form,
> conventions as interesting as it is frustrating. I need to re-use this
> button helper in many views several times over for several different
> buttons. Say...
>
> <%=
On Sat, Nov 27, 2010 at 4:08 PM, Marnen Laibow-Koser
wrote:
> Of course it isn't. But it *is* geared to learners, which the official
> spec is not.
Whatever you say. I (and I'm sure many others) learned from the
recommendations and `view source` because that was all there
was at the time -- nev
Hassan Schroeder wrote in post #964393:
> On Sat, Nov 27, 2010 at 3:19 PM, Marnen Laibow-Koser
> wrote:
>
>> Depends. Most of w3schools' HTML and CSS information that I've seen is
>> pretty good. It's usually one of the first places I tell learners to go.
>
> Good for you. It's still not the defin
Hi, I'd like to bump this thread if this is ok? My main objective is for
people to take a look at this error message I get when running 'rails
server'
Attachments:
http://www.ruby-forum.com/attachment/5472/error.JPG
--
Posted via http://www.ruby-forum.com/.
--
You received this message becaus
On 27 November 2010 23:46, Zack Nathan wrote:
>> You don't *have* a singular named controller... and if you did why
>> would you be mapping resources for it?
>
> My controller is named repository.
you said earlier:
> my controller is called RepositoriesController.
...now you're saying is actuall
Michael Pavling wrote in post #964391:
> On 27 November 2010 23:24, Zack Nathan wrote:
>>> You might notice, that your current route mapping is singular, and the
>>> one I've suggested using is plural...
>>
>> But does that work with a singular named controller?
>> Thanks,
>
> You don't *have* a s
On Sat, Nov 27, 2010 at 3:19 PM, Marnen Laibow-Koser
wrote:
> Depends. Most of w3schools' HTML and CSS information that I've seen is
> pretty good. It's usually one of the first places I tell learners to go.
Good for you. It's still not the definitive source for the HTML and CSS
recommendation
On 27 November 2010 23:24, Zack Nathan wrote:
>> You might notice, that your current route mapping is singular, and the
>> one I've suggested using is plural...
>
> But does that work with a singular named controller?
> Thanks,
You don't *have* a singular named controller... and if you did why
wo
Zack Nathan wrote in post #964388:
[...]
>> You might notice, that your current route mapping is singular, and the
>> one I've suggested using is plural...
>
> But does that work with a singular named controller?
Why do you want a singular-named controller? Plural is the usual
convention, unless
Michael Pavling wrote in post #964384:
> On 27 November 2010 22:37, Zack Nathan wrote:
>> I just dont see where the problem is! Its super strange..
>
> For the last time... have you done this?
>
>>> so try changing it to :
>>>
>>> map.resources :repositories, :has_many => :bugs
>>>
>
> You might n
Hassan Schroeder wrote in post #964318:
> On Sat, Nov 27, 2010 at 3:59 AM, gezope wrote:
>
>> I'm not an expert, don't believe me ;) But I agree with others: W3
>> basics are useful, because you won't understand the picture in Rails.
>>
>> So first HTML+CSS+JavaScript, hopefully from The Source:
>
On 27 November 2010 22:37, Zack Nathan wrote:
> I just dont see where the problem is! Its super strange..
For the last time... have you done this?
>> so try changing it to :
>>
>> map.resources :repositories, :has_many => :bugs
>>
You might notice, that your current route mapping is singular, a
Michael Pavling wrote in post #964379:
> On 27 November 2010 22:10, Zack Nathan wrote:
More likely (due to the "repositories path") to be a routing problem.
Zack, do you have "map.resources :repositories" in your routes.rb
file?
>>
>> I dont actually. My routes for repository looks
On 27 November 2010 22:10, Zack Nathan wrote:
>>> More likely (due to the "repositories path") to be a routing problem.
>>> Zack, do you have "map.resources :repositories" in your routes.rb
>>> file?
>
> I dont actually. My routes for repository looks like this: map.resources
> :repository, :has_m
Jaap Haagmans wrote in post #964371:
> On Nov 27, 10:50pm, Michael Pavling wrote:
>> On 27 November 2010 21:17, Brian Troutwine wrote:
>>
>> >> undefined method `repositories_path' for #
>>
>> > It is expected by your view that the controller serving up this view
>> > has defined a model instance
Marnen Laibow-Koser wrote in post #964375:
> Kannav R. wrote in post #964048:
>> in your Gemfile delete line which have sqlite3-ruby
>
> As usual, your advice is useless and wrong. Please don't post if this
> is all you're going to say.
No, on second look, you were right and I'm the one who shoul
Kannav R. wrote in post #964048:
> in your Gemfile delete line which have sqlite3-ruby
As usual, your advice is useless and wrong. Please don't post if this
is all you're going to say.
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
--
Posted via http://www.ruby-forum.com
Anthony Ettinger wrote in post #749437:
> I recall problems with putting data migrations directly into a
> database migration file.
What you recall are problems with putting *seed data* into migration
files. Migrations are for changing the database schema only.
Sometimes, however, changing the
On Nov 27, 10:50 pm, Michael Pavling wrote:
> On 27 November 2010 21:17, Brian Troutwine wrote:
>
> >> undefined method `repositories_path' for #
>
> > It is expected by your view that the controller serving up this view
> > has defined a model instance @repository.
>
> More likely (due to the "r
On 27 November 2010 21:17, Brian Troutwine wrote:
>> undefined method `repositories_path' for #
>
> It is expected by your view that the controller serving up this view
> has defined a model instance @repository.
More likely (due to the "repositories path") to be a routing problem.
Zack, do you h
Brian Troutwine wrote in post #964363:
> On Sat, Nov 27, 2010 at 3:43 PM, Zack Nathan
> wrote:
>> Hey everyone,
>>
>> I get this error for some reason when trying to access my new action.
>> Here's the error:
>> undefined method `repositories_path' for #
>>
>> Heres my view code:
>>
>> <% form_for
On Sat, Nov 27, 2010 at 3:43 PM, Zack Nathan wrote:
> Hey everyone,
>
> I get this error for some reason when trying to access my new action.
> Here's the error:
> undefined method `repositories_path' for #
>
> Heres my view code:
>
> <% form_for(@repository) do |f| %>
It is expected by your view
Hey everyone,
I get this error for some reason when trying to access my new action.
Here's the error:
undefined method `repositories_path' for #
Heres my view code:
<% form_for(@repository) do |f| %>
<%= f.error_messages %>
<%= f.label :name %>
<%= f.text_field :name %>
<
installing bundler and adding mysql to gemfile totally works !
http://techleap.blogspot.com/2010/11/not-able-to-create-database-mysql-and.html
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To
Colin,
> Does that help?
Thank you very much. I think I've got it. It works in the console, and
now I will try to implement it in my application.
Regards,
Markus
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on R
Usually, when options for select tag was set and not dependent on data
from database, I placed key-value pairs in yml locale file. I wasn't
sure this is the right place for that. For example in ruby 1.8.7 key-
value pairs taken from locale are displayed in random order. I have
even more doubts now,
On Sat, Nov 27, 2010 at 12:28 PM, Paul Roche wrote:
> Ah, I created a new app, specific to the new ruby version. When I try
> and run the server I get an error mesasge. Please find attached
>
> Attachments:
> http://www.ruby-forum.com/attachment/5468/error.JPG
Ah, I'm afraid that's a Windows spec
Hello, I currently have my app's mail setup as follows:
Step 1:
Observers monitor tables, and send out emails when triggered by
after_save in the observer
Step 2:
The observer then calls something like:
`UserMailer.XX_created_notification(record).deliver`
Step 3:
User mailer sends the mail o
Ah, I created a new app, specific to the new ruby version. When I try
and run the server I get an error mesasge. Please find attached
Attachments:
http://www.ruby-forum.com/attachment/5468/error.JPG
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscr
On Sat, Nov 27, 2010 at 12:17 PM, Paul Roche wrote:
> I think so. I run it from rails_app/project_name
Do be sure that rails_app/project_name is a rails3 app.
> I am using instant rails. I was running ruby v 186, then I downloaded
> 192 and literally copy and pasted the 192 files into the ruby f
I think so. I run it from rails_app/project_name
I am using instant rails. I was running ruby v 186, then I downloaded
192 and literally copy and pasted the 192 files into the ruby folder in
instantrails, overwriting what existed before hand. I'm not sure if here
lies the problem
--
Posted vi
Are you running rails server in the root of your project?
On Sat, Nov 27, 2010 at 12:10 PM, Paul Roche wrote:
> Hi. When I try and start my server using 'rails server' I get the
> following.
>
> Usage:
> rails new APP_PATH [options]
>
> Options:
> -r, [--ruby=PATH] # Path to the R
Hi. When I try and start my server using 'rails server' I get the
following.
Usage:
rails new APP_PATH [options]
Options:
-r, [--ruby=PATH] # Path to the Ruby binary of your choice
# Default:
C:/InstantRails-2.0-win/ruby/bin/r
xe
-d, [--database=D
Without opening a debate on the issue. I find the whole bad form,
conventions as interesting as it is frustrating. I need to re-use this
button helper in many views several times over for several different
buttons. Say...
<%= button_helper(:fruit) %>
<%= button_helper(:fungi) %>
<%= button_helper(
On Sat, Nov 27, 2010 at 3:59 AM, gezope wrote:
> I'm not an expert, don't believe me ;) But I agree with others: W3
> basics are useful, because you won't understand the picture in Rails.
>
> So first HTML+CSS+JavaScript, hopefully from The Source:
> http://www.w3schools.com/
Hopefully not. The
I solved this problem by reinstalling everything. I installed RoR
Enterprise and then installed most gem packages that didn't come by
default. This seems to have solved my problem.
Franck
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
On Sat, Nov 27, 2010 at 7:28 AM, Peter Parker wrote:
I was looking for "Ruby as web programming",
> meaning, something that can guide me how to use "Ruby on Rails"
http://lmgtfy.com/?q=ruby+web+programming
--
Hassan Schroeder hassan.schroe...@gmail.com
twitter: @hassan
On 27 November 2010 16:05, daze wrote:
>> Sorry for any confusion. I was answering the two different questions
>> the OP seemed to ask:
>> 1) *can* you set up different DBs for dev/test/production?
>
> Sound good?
Yes.
Sorry again - of course, all the environments use different databases
(even i
On 27 November 2010 16:00, Greg Ma wrote:
> Colin Law wrote in post #964301:
>> On 27 November 2010 14:56, Greg Ma wrote:
Colin
>>>
>>> yes it looks correct
>>
>> So you have no problem with FasterCSV then. What exactly _is_ the
>> problem?
>>
>> Colin
>
> The problem is the rendering in th
> Sorry for any confusion. I was answering the two different questions
> the OP seemed to ask:
> 1) *can* you set up different DBs for dev/test/production?
> Yes you can, and it's very easy.
> 2) *should* you do it?
> No - in most cases.
I think, when you say "should you do it?" you mean "should y
Colin Law wrote in post #964301:
> On 27 November 2010 14:56, Greg Ma wrote:
>>> Colin
>>
>> yes it looks correct
>
> So you have no problem with FasterCSV then. What exactly _is_ the
> problem?
>
> Colin
The problem is the rendering in the CSV. I a supposed to have 4 columns,
but instead I hav
HI Zoltn,
First of all thanks for our reply.
The link u provided
http://www.ruby-lang.org/en/documentation/quickstart/, if the tutorial
for the ruby language. I was looking for "Ruby as web programming",
meaning, something that can guide me how to use "Ruby on Rails"
Thanks
--
Posted via h
On 27 November 2010 12:57, Colin Law wrote:
> Here you say they should be the same I think (which I agree with
> generally), yet right at the start you said it was ok for them to be
> different.
Sorry for any confusion. I was answering the two different questions
the OP seemed to ask:
1) *can* yo
On 27 November 2010 14:56, Greg Ma wrote:
> Colin Law wrote in post #964287:
>> On 27 November 2010 14:10, Greg Ma wrote:
>>> alerts.each do |alert|
>>> csv << [alert.id, alert.email, alert.city, alert.frequence]
>>> end
>>> end
>>
>> Have you used ruby-debug or similar method to break in
Colin Law wrote in post #964287:
> On 27 November 2010 14:10, Greg Ma wrote:
>> alerts.each do |alert|
>>csv << [alert.id, alert.email, alert.city, alert.frequence]
>> end
>> end
>
> Have you used ruby-debug or similar method to break into here to see
> whether csv_string is setup correct
On 27 November 2010 14:10, Greg Ma wrote:
> Hi,
>
> I have a problme with fasterCSV, it isn't rendering columns... I don't
> understand why. All my columns are inside the first column the csv file
> :(
>
> csv_string = FasterCSV.generate(:col_sep => "\t") do |csv|
> # header row
> csv <<
Hi,
I have a problme with fasterCSV, it isn't rendering columns... I don't
understand why. All my columns are inside the first column the csv file
:(
csv_string = FasterCSV.generate(:col_sep => "\t") do |csv|
# header row
csv << ["id", "Email", "Ville", "Type", "Fréquence"]
# da
Hello Peter,
First this:
http://www.ruby-lang.org/en/documentation/quickstart/
and also check the Try it out link.
I suggest these books:
http://www.pragprog.com/titles/ruby/programming-ruby
http://www.pragprog.com/titles/fr_ltp/learn-to-program
the second is about the basics, the first is about
On 27 November 2010 12:45, Michael Pavling wrote:
> On 27 November 2010 03:14, daze wrote:
>> Is it okay to have, for example, sqlite3 for development and testing,
>> and mysql2 for production? Is that doable/common/not too hard to
>> configure?
>
> It's perfectly doable, and perfectly okay, and
On 26 November 2010 16:32, Gintautas Šimkus wrote:
>
> I just calculated your salary and got a little excited
>
> Anyway, do you accept some references?
>
> So anyway if you do need some (pretty much) rookie candidates for RoR
> positions, feel free to contact me, preferably with concrete requirem
On 27 November 2010 03:14, daze wrote:
> Is it okay to have, for example, sqlite3 for development and testing,
> and mysql2 for production? Is that doable/common/not too hard to
> configure?
It's perfectly doable, and perfectly okay, and apparently quite
common; just complete the appropriate sec
On 27 November 2010 12:21, Kostas L. wrote:
Please don't top post, it makes it difficult to follow the thread.
Insert your reply into the previous post. Thanks
> Hi colin,
> i have used these names because i have already created a php
> application using these names and i want to create the sam
I had an i7 mbp. I just bought a mbair and due to the fact that it
uses flash media for storage it feels about a third faster at most
rails dev tasks I throw at it. For instance my cucumber suites run
about a third faster than my i7! Even parallels starts up and shuts
down faster.
Working on large
Hi colin,
i have used these names because i have already created a php
application using these names and i want to create the same
application in rails.
Its for a project in my university.
I dont want to have different field names ..
Do you think the problem is the names??? I dont think so...
Kost
Hello,
I'm not an expert, don't believe me ;) But I agree with others: W3
basics are useful, because you won't understand the picture in Rails.
So first HTML+CSS+JavaScript, hopefully from The Source:
http://www.w3schools.com/
Here you found the standards.
I think it's a good way to check how thi
Hi,
I think you can use different databases without any problem, just set
it in the database.yaml file. I think this is the only settings you
need, but it's wise to check the application.rb file, if any other
smart settings are available.
For hardcoding SQL use this tutorial:
http://guides.rubyonr
Colin Law wrote in post #964252:
> On 27 November 2010 09:45, Stefano Bonomi wrote:
>> Well
>> my problem is that after form post, I have to do a long elaboration.
>> So, my page remain stuck for a long time
>> I would like to display an intermediate page after post (thank for your
>> coll
On 27 November 2010 03:30, Tiesto wrote:
> Hi!!
>
> Somebody knows why throws me an exception??
>
> invalid date
> (eval):6:in `directoryOfAgentsByCity'
> C:/Users/usuario/Desktop/Servidor/servidor3/app/controllers/
> enterprise_controller.rb:727:in
> `get_agent_by_city'
The clue's in the error m
Hi!!
Somebody knows why throws me an exception??
invalid date
C:/Ruby/lib/ruby/1.8/date.rb:1482:in `civil'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/
core_ext/string/conversions.rb:23:in
`to_datetime'
C:/Ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/xsd/datatypes.rb:
On Sat, Nov 27, 2010 at 1:03 AM, SungHun Park wrote:
> I am really beginer of ROR and looking around Getting Started.
>
> In 7.1 Generating a Model, I cannot see any command code to generate
> comment model. There is only div box without code. I am using IE7 and
> Windows XP.
>
> Here is the lin
On 27 November 2010 09:45, Stefano Bonomi wrote:
> Well
> my problem is that after form post, I have to do a long elaboration.
> So, my page remain stuck for a long time
> I would like to display an intermediate page after post (thank for your
> collaboration..blah, blah, blah.)
> so t
Well
my problem is that after form post, I have to do a long elaboration.
So, my page remain stuck for a long time
I would like to display an intermediate page after post (thank for your
collaboration..blah, blah, blah.)
so that the visitor knows whats going on.
Any suggestion?
Thanks i
On 27 November 2010 09:16, Rob Lacey wrote:
> I'm judging from your response that you would you argue that using a
> Rails view helper inside another view helper is wrong then? I would
> say this isn't crazy its just trying to DRY up a small form (just a
> button) I am using in lots of different p
On 26 November 2010 23:54, JK wrote:
> So I would like to add time as an attribute of my Submission using
> scaffolding. What is the code I should use to replace part?
>
> rails generate scaffold Submission title:string describtion:text
> email:string category:string time:??
I would advi
I think you have to specify which fields ferret will index. Take a
look at: https://github.com/jkraemer/acts_as_ferret (under "Usage").
I got a lot of problems with ferret under production, you may consider
switching to sphinx/thinking sphinx.
On 27 Nov, 07:00, Arun Kumar wrote:
> Hi All,
> I w
On 27 November 2010 00:03, SungHun Park wrote:
> I am really beginer of ROR and looking around Getting Started.
>
> In 7.1 Generating a Model, I cannot see any command code to generate
> comment model. There is only div box without code. I am using IE7 and
> Windows XP.
>
> Here is the link:
>
>
On 26 November 2010 22:04, Humberto Ribeiro wrote:
> in rails 3.0.3, when up app in production mode... the css and js
> cannot be loades... anyone know how to handler it to make it works?
What do you mean they cannot be loaded?
Check the html for the page to see if the script/link tags are there
I'm judging from your response that you would you argue that using a
Rails view helper inside another view helper is wrong then? I would
say this isn't crazy its just trying to DRY up a small form (just a
button) I am using in lots of different places.
I found the solution in the end.
module MyHe
You might wanna consider creating your own form builder instead
putting into helpers. Look at formtastic gem as an example.
Robert Pankowecki
http://robert.pankowecki.pl
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this gro
On 26 November 2010 21:20, Kostas L. wrote:
> Hi colin,
> i dont see any UserSession table...
That's ok (I had forgotten how authlogic works).
Lets try again then :)
Why have you got t_login and t_password in your view? Should it not
just be :login and :password?
Colin
--
You received this me
81 matches
Mail list logo