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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/GY0kA4TmcxwJ.
For more options, visit https://groups.google.com/groups/opt_out.
Thanks lot to clear this topic.
On Wednesday, October 31, 2012 12:11:15 PM UTC+5:30, Jordon Bedwell wrote:
Hi,
On Wed, Oct 31, 2012 at 1:35 AM, Fahim Patel <paf...@gmail.com> wrote:
> Q 1 Is any one of this is by default included in Rails ?
No.
> Q2 Any advantage of this gems over simple form tags ?
For me, most of the time there is not, actually they add overhead IMO
(at least for my purposes) so I actually just build meta-form-wrapper
helpers that generate generic left_text_area and other methods like it
that just add the classes I need for forms and wrap the <section>'s
around the generic helpers that Rails already provides. That is,
instead of including another dependency that I don't need, but for
some people they bring great benefit because they can handle HTML from
step 1 to end, I don't like that because I prefer to directly control
every bit of output my app makes.
Only you can evaluate whether or not they are worth it, it's a battle
of your own to fight, I can honestly say I would use them if I
actually had a use for them, and many people will agree they have a
use for them, but I personally don't have a use for them so I choose
not to use them. You have to evaluate that for yourself.
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/fbG3tlR6bSgJ.
For more options, visit https://groups.google.com/groups/opt_out.
Hi folks,
/Users/bradwrage/.rvm/gems/ruby-1.9.3-p286/gems/sqlite3-1.3.6/lib/sqlite3/sqlite3_native.bundle: [BUG] Segmentation faultruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]Abort trap: 6
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/N4Iwdch_k3oJ.
For more options, visit https://groups.google.com/groups/opt_out.
Hi Oliver,
I am interested in the contract work, I have two years expirience as RoR developer. I supose this is a home office work. I am in Mexico City. Here is a sample of my work www.carmen-gallery.com Could you give the details?
Regards,
Josue Figueroa
Hi,
I am looking for a developer who is keen to take on some contract work.If you have capacity (full time or part time) and might be interested please respond to me directly.Regards--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/DwiI1XftpVkJ.
For more options, visit https://groups.google.com/groups/opt_out.
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
getting this error
compile error /Users/bradwrage/webapps/blog/app/views/posts/index.html.erb:5: syntax error, unexpected '=' ...w Goal", new_post_path, class="btn btn-success" );@output_bu... ^ /Users/bradwrage/webapps/blog/app/views/posts/index.html.erb:7: syntax error, unexpected kDO_BLOCK, expecting kEND '); @posts.each do |post| ^ /Users/bradwrage/webapps/blog/app/views/posts/index.html.erb:21: syntax error, unexpected kENSURE, expecting $end
<h1> Goals</h1> 3: </div><br /> 4: <p class="lead">"Shoot for the stars to land on the moon."</p><br /> 5: <%= link_to "Post a new Goal", new_post_path, class="btn btn-success" %> 6: 7: <% @posts.each do |post| %>
8: <div class="post">
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/B1egdfsDE-0J.
For more options, visit https://groups.google.com/groups/opt_out.
Heres a problem I'm running into.
On Monday, October 29, 2012 10:18:04 AM UTC-7, Santiago Pastorino wrote:
Hi everyone,
Rails 3.2.9.rc1 has been released. If no regressions are found I will
release 3.2.9 final this Thursday 1st. If you find a regression open an
issue on github and mention me on it, mail me or tweet me, whatever but
let me know :).
## CHANGES since 3.2.8
*Action Mailer*
* Do not render views when mail() isn't called.
Fix #7761
*Yves Senn*
*Action Pack*
* Accept :remote as symbolic option for `link_to` helper. *Riley Lynch*
* Warn when the `:locals` option is passed to `assert_template`
outside of a view test case
Fix #3415
*Yves Senn*
* Rename internal variables on ActionController::TemplateAssertions to prevent
naming collisions. @partials, @templates and @layouts are now
prefixed with an underscore.
Fix #7459
*Yves Senn*
* `resource` and `resources` don't modify the passed options hash
Fix #7777
*Yves Senn*
* Precompiled assets include aliases from foo.js to foo/index.js and
vice versa.
# Precompiles phone-<digest>.css and aliases phone/index.css
to phone.css.
config.assets.precompile = [ 'phone.css' ]
# Precompiles phone/index-<digest>.css and aliases phone.css
to phone/index.css.
config.assets.precompile = [ 'phone/index.css' ]
# Both of these work with either precompile thanks to their aliases.
<%= stylesheet_link_tag 'phone', media: 'all' %>
<%= stylesheet_link_tag 'phone/index', media: 'all' %>
*Jeremy Kemper*
* `assert_template` is no more passing with what ever string that matches
with the template name.
Before when we have a template `/layout/hello.html.erb`, `assert_template`
was passing with any string that matches. This behavior allowed false
positive like:
assert_template "layout"
assert_template "out/hello"
Now it only passes with:
assert_template "layout/hello"
assert_template "hello"
Fixes #3849.
*Hugolnx*
* Handle `ActionDispatch::Http::UploadedFile` like
`Rack::Test::UploadedFile`, don't call to_param on it. Since
`Rack::Test::UploadedFile` isn't API compatible this is needed to
test file uploads that rely on `tempfile`
being available.
*Tim Vandecasteele*
* Fixed a bug with shorthand routes scoped with the `:module` option not
adding the module to the controller as described in issue #6497.
This should now work properly:
scope :module => "engine" do
get "api/version" # routes to engine/api#version
end
*Luiz Felipe Garcia Pereira*
* Respect `config.digest = false` for `asset_path`
Previously, the `asset_path` internals only respected the `:digest`
option, but ignored the global config setting. This meant that
`config.digest = false` could not be used in conjunction with
`config.compile = false` this corrects the behavior.
*Peter Wagenet*
* Fix #7646, the log now displays the correct status code when an
exception is raised.
*Yves Senn*
* Fix handling of date selects when using both disabled and discard options.
Fixes #7431.
*Vasiliy Ermolovich*
* Fix select_tag when option_tags is nil.
Fixes #7404.
*Sandeep Ravichandran*
* `javascript_include_tag :all` will now not include
`application.js` if the file does not exists. *Prem Sichanugrist*
* Support cookie jar options (e.g., domain :all) for all session stores.
Fixes GH#3047, GH#2483.
*Ravil Bayramgalin*
* Performance Improvement to send_file: Avoid having to pass an open
file handle as the response body. Rack::Sendfile
will usually intercept the response and just uses the path
directly, so no reason to open the file. This performance
improvement also resolves an issue with jRuby encodings, and is
the reason for the backport, see issue #6844.
*Jeremy Kemper & Erich Menge*
*Active Model*
* Due to a change in builder, nil values and empty strings now generates
closed tags, so instead of this:
<pseudonyms nil=\"true\"></pseudonyms>
It generates this:
<pseudonyms nil=\"true\"/>
*Carlos Antonio da Silva*
*Active Record*
* Fix bug where `update_columns` and `update_column` would not let
you update the primary key column.
*Henrik Nyh*
* Decode URI encoded attributes on database connection URLs.
*Shawn Veader*
* Fix AR#dup to nullify the validation errors in the dup'ed object.
Previously the original
and the dup'ed object shared the same errors.
* Christian Seiler*
* Synchronize around deleting from the reserved connections hash.
Fixes #7955
* PostgreSQL adapter correctly fetches default values when using
multiple schemas and domains in a db. Fixes #7914
*Arturo Pie*
* Fix deprecation notice when loading a collection association that
selects columns from other tables, if a new record was previously
built using that association.
*Ernie Miller*
* The postgres adapter now supports tables with capital letters.
Fix #5920
*Yves Senn*
* `CollectionAssociation#count` returns `0` without querying if the
parent record is not persisted.
Before:
person.pets.count
# SELECT COUNT(*) FROM "pets" WHERE "pets"."person_id" IS NULL
# => 0
After:
person.pets.count
# fires without sql query
# => 0
*Francesco Rodriguez*
* Fix `reset_counters` crashing on `has_many :through` associations.
Fix #7822.
*lulalala*
* ConnectionPool recognizes checkout_timeout spec key as taking
precedence over legacy wait_timeout spec key, can be used to avoid
conflict with mysql2 use of wait_timeout. Closes #7684.
*jrochkind*
* Rename field_changed? to _field_changed? so that users can create
a field named field
*Akira Matsuda*, backported by *Steve Klabnik*
* Fix creation of through association models when using `collection=[]`
on a `has_many :through` association from an unsaved model.
Fix #7661.
*Ernie Miller*
* Explain only normal CRUD sql (select / update / insert / delete).
Fix problem that explains unexplainable sql. Closes #7544 #6458.
*kennyj*
* Backport test coverage to ensure that PostgreSQL auto-reconnect
functionality
remains healthy.
*Steve Jorgensen*
* Use config['encoding'] instead of config['charset'] when executing
databases.rake in the mysql/mysql2. A correct option for a database.yml
is 'encoding'.
*kennyj*
* Fix ConnectionAdapters::Column.type_cast_code integer conversion,
to always convert values to integer calling #to_i. Fixes #7509.
*Thiago Pradi*
* Fix time column type casting for invalid time string values to
correctly return nil.
*Adam Meehan*
* Fix `becomes` when using a configured `inheritance_column`.
*Yves Senn*
* Fix `reset_counters` when there are multiple `belongs_to`
association with the
same foreign key and one of them have a counter cache.
Fixes #5200.
*Dave Desrochers*
* Round usec when comparing timestamp attributes in the dirty tracking.
Fixes #6975.
*kennyj*
* Use inversed parent for first and last child of has_many association.
*Ravil Bayramgalin*
* Fix Column.microseconds and Column.fast_string_to_date to avoid converting
timestamp seconds to a float, since it occasionally results in inaccuracies
with microsecond-precision times. Fixes #7352.
*Ari Pollak*
* Fix `increment!`, `decrement!`, `toggle!` that was skipping callbacks.
Fixes #7306.
*Rafael Mendonça França*
* Fix AR#create to return an unsaved record when AR::RecordInvalid is
raised. Fixes #3217.
*Dave Yeu*
* Remove unnecessary transaction when assigning has_one associations
with a nil or equal value.
Fix #7191.
*kennyj*
* Allow store to work with an empty column.
Fix #4840.
*Jeremy Walker*
* Remove prepared statement from system query in postgresql adapter.
Fix #5872.
*Ivan Evtuhovich*
* Make sure `:environment` task is executed before `db:schema:load`
or `db:structure:load`
Fixes #4772.
*Seamus Abshere*
*Active Resource*
* No changes
*Active Support*
* Add logger.push_tags and .pop_tags to complement logger.tagged:
class Job
def before
Rails.logger.push_tags :jobs, self.class.name
end
def after
Rails.logger.pop_tags 2
end
end
*Jeremy Kemper*
* Add %:z and %::z format string support to
ActiveSupport::TimeWithZone#strftime. [fixes #6962] *kennyj*
*Railties*
* Don't eager-load app/assets and app/views *Elia Schito*
* Update supported ruby versions error message in
ruby_version_check.rb *Lihan Li*
## SHA-1
* 24af6eff6b7c647d04eee9585184ba89f0746d40 actionmailer-3.2.9.rc1.gem
* c34ea8f12308c9f6fc4d6b31ce8caa2a562b210a actionpack-3.2.9.rc1.gem
* 8b3171fdde905c76a541286192e6cef211d83a70 activemodel-3.2.9.rc1.gem
* 0752e47880da4bb9be2b0309bce5a444a9271420 activerecord-3.2.9.rc1.gem
* d8c1eeedbf3bc33d1560700cc70cb1752cdc811a activeresource-3.2.9.rc1.gem
* 8ad917f70cc3b0a04864c8aa705a0e4997736872 activesupport-3.2.9.rc1.gem
* 6fdc627a032f1f3ded7830e044298e20fd3fc6ce rails-3.2.9.rc1.gem
* 444da0c3f2a1e3200d2a613973062c2d3e4ad7d0 railties-3.2.9.rc1.gem
You can find a list of changes between v3.2.8 and v3.2.9.rc1
[here](https://github.com/rails/rails/compare/v3.2.8... )v3.2.9.rc1
Thanks to everyone!
--
Santiago Pastorino
WyeWorks Co-founder
http://www.wyeworks.com
Twitter: http://twitter.com/spastorino
Github: http://github.com/spastorino
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/w1c3yhobm1IJ.
For more options, visit https://groups.google.com/groups/opt_out.
On 31 October 2012 20:29, Samantha Cabral <samantha.grimm@gmail.com> wrote:
> Hi,
>
> I am trying to work through the Ruby on Rails 3 Tutorial book. I got stuck
> on chapter 5, trying to get the routes.rb file changed into:
>
> match '/signup', :to => 'users#new'
> match '/contact', :to => 'pages#contact'
> match '/about', :to => 'pages#about'
> match '/help', :to => 'pages#help'
> root :to => 'pages#home'
>
> It used to be "get" instead of "match". I have made the changes to the other
> files the book recommends, but the pages have since stopped loading and the
> tests are failing.
> rspec ./spec/controllers/pages_controller_spec.rb:27 # PagesController GET
> 'contact' should be successful
You should have a more useful message than that somewhere, possibly in
log/test.log if nowhere else. Otherwise what message do you get when
you try to load one of the pages in a browser?
Colin
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Tony Martin wrote in post #1082196:
> From the question you have posed, and the information you have provided,
> 7. Finally having thought about all this, I would do some googling to
> see
> if someone has already implemented such a thing in a form I could learn
> from, or is there maybe a js library that might already provide most of
> the
> functionality I require.
>
> I am sorry this is not a direct answer, but hopefully it may help to
> clarify what you are trying to achieve and how you are going to go about
> it.
>
>
> Tonypm
After giving some serious thought to this matter and reading all your
advices my last thinking was "I really don't have that high knowledge of
js nor ajax so lets search the solution in other way, more
rails-already-implemented solution"
So I found this plug-in called Pageless that is designed for rails and
after some work I could made it work.
--
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi,
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/d3Y0BKTuzhEJ.
For more options, visit https://groups.google.com/groups/opt_out.
I code this on my controller:
and this on my sweeper
class SiteSweeper < ActionController::Caching::Sweeper observe Article, Category
def after_create(model) expire_cache_for(model) end
def after_update(model) expire_cache_for(model) end
def after_destroy(model) expire_cache_for(model) end
private def expire_cache_for(model) expire_page controller: 'page', action: 'index' endend
https://github.com/leandromoreira/playground.activeadmin/blob/master/app/sweepers/site_sweeper.rb
But I change my Article and the change do not expire the page, am I doing something wrong?
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/7wzAqhXPLkYJ.
For more options, visit https://groups.google.com/groups/opt_out.
thanks Tommaso and hazardco!
:)
both ways worked.
solved.
--
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
On Oct 29, 2012, at 7:04 PM, arturo drlt wrote:
> Hi there i have this issue I have a view that render a partial for each
> member inside the object @foo and I have a function for infinite scroll
> so the server will be doing request after request while scrolling down
> but I don't know exactly how to make this work here is some of my code:
>
>
> def popular
> @foo = Foo.new
>
> respond_to do |format|
> response = @foo.popular
> ...
>
> flash[:notice] = "Welcome."
> format.html { render popular_foo_path}
> ....
> end
> end
> end
>
> views/foo/popular
>
> - @foo.each do |f|
> = render(:partial => "popular_foo", :locals => { :foo => f})
>
> views/foo/_popular_foo
>
> - f['thumbs'].each do |thumb|
> = image_tag(thumb['thumburl'].to_s, :alt => "thumb", :class =>
> "thumb-popular")
>
> every time you scrolldown to certain height a fuction
> $(document).infinite_scroll is called and i have it configured to make a
> new call to the method popular and I can see in the console and in the
> firebug that it do the request and succeed but it won't render the next
> results.
>
The best advice I have seen on this topic so far is to first walk, then run. Start by setting up traditional (kaminari, will_paginate) pagination. Get that working solidly. Then layer on the JavaScript to call that pagination in your page, based on the simple test: "is this marker item visible on screen or not?".
The benefit to this approach is that you silently cater to non-scripted visitors, like Google, who you ignore at your peril.
Walter
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Sorry, use a collection, not a member:
Cbapp::Application.routes.draw do
resources :users do
collection do
get 'login'
end
end
root :to => 'users#index'
end
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Il 31/10/12 15:22, IT Coobo Internal Team ha scritto:
> Cbapp::Application.routes.draw do
> resources :users
> root :to => 'users#index'
> match 'users/login' => 'users#login'
> end
rules order in routes.rb is important: users resource 'users/:id'
matches before 'users/login' so login is the id :)
you can invert the order of the rules or, better, use a member:
Cbapp::Application.routes.draw do
resources :users do
member do
get 'login'
end
end
root :to => 'users#index'
end
Take a look here:
http://guides.rubyonrails.org/routing.html#adding-more-restful-actions
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
WOW! I don't believe it. I only have to reorder the lines as hazardco
said!
SOLVED! but i have a question. Why reorder the lines solved my problem?
anyway thanks guy.
--
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
On 31 October 2012 14:22, IT Coobo Internal Team <lists@ruby-forum.com> wrote:
> Hi everbody,
>
> I'm new in the forum. I' studing ruby and rails and I hope learn faster
> with the help of the forum.
I suggest your best plan might be to work right through a tutorial on
rails to help you to understand the basics. railstutorial.org is good
and is free to use online. Make sure that any tutorial you use is for
Rails 3 and that you use exactly the right version of rails that the
tutorial expects.
Colin
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
That was it....
On Tuesday, October 30, 2012 11:35:01 PM UTC-7, Jordon Bedwell wrote:
On Wed, Oct 31, 2012 at 1:28 AM, wragen22 <brad...@gmail.com> wrote:
Hi,
> for some reason adding the following is doing nothing...
Please note this list is for Rails questions, not HTML/CSS questions.
> .post.hover {
> background: FAFAFA;
FAFAFA is not a valid value for background, and you should be using
background-color if you only have a colour just for semantics but to
directly address your question, please try doing #fafafa, please also
note that the pseudo class for hover is :hover so try .post:hover
instead of .post.hover.
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/87wjlGAzcywJ.
For more options, visit https://groups.google.com/groups/opt_out.
solved!!
--
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hello, the pull request has been merged and will be in 3.2.9, thanks!
Hi here. I have one failed spec in my application and it's caused by return
value from ActiveRecord#update_column method. It looks like this method is
broken to return correct value. Here is my pull request to solve this
problem.
https://github.com/rails/rails/pull/8083
Please take a look on this.To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-core/-/unzdbMxzykkJ.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
At.
Carlos Antonio
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Try this:
> Cbapp::Application.routes.draw do
> root :to => 'users#index'
> match 'users/login' => 'users#login'
> resources :users
> end
Enviado desde mi iPhone
El 31/10/2012, a las 15:22, IT Coobo Internal Team <lists@ruby-forum.com> escribió:
> Hi everbody,
>
> I'm new in the forum. I' studing ruby and rails and I hope learn faster
> with the help of the forum.
>
> Well, my problem is basic. I have made a scaffold to create a new object
> User. User has name, email and password.
>
> I created a new view named "login", but i don't know how to make the
> route to this view. I Have the function in the controller too.
>
>
> Cbapp::Application.routes.draw do
> resources :users
> root :to => 'users#index'
> match 'users/login' => 'users#login'
> end
>
>
> and I got this error: Couldn't find User with id=login
>
> Thanks!
>
> --
> 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 post to this group, send email to rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi everbody,
I'm new in the forum. I' studing ruby and rails and I hope learn faster
with the help of the forum.
Well, my problem is basic. I have made a scaffold to create a new object
User. User has name, email and password.
I created a new view named "login", but i don't know how to make the
route to this view. I Have the function in the controller too.
Cbapp::Application.routes.draw do
resources :users
root :to => 'users#index'
match 'users/login' => 'users#login'
end
and I got this error: Couldn't find User with id=login
Thanks!
--
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
On Monday, 29 October 2012 23:05:43 UTC, Ruby-Forum.com User wrote:
Hi there i have this issue I have a view that render a partial for each
member inside the object @foo and I have a function for infinite scroll
so the server will be doing request after request while scrolling down
but I don't know exactly how to make this work here is some of my code:
def popular
@foo = Foo.new
respond_to do |format|
response = @foo.popular
...
flash[:notice] = "Welcome."
format.html { render popular_foo_path}
....
end
end
end
views/foo/popular
- @foo.each do |f|
= render(:partial => "popular_foo", :locals => { :foo => f})
views/foo/_popular_foo
- f['thumbs'].each do |thumb|
= image_tag(thumb['thumburl'].to_s, :alt => "thumb", :class =>
"thumb-popular")
every time you scrolldown to certain height a fuction
$(document).infinite_scroll is called and i have it configured to make a
new call to the method popular and I can see in the console and in the
firebug that it do the request and succeed but it won't render the next
results.
--
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/DNjP5tChIy4J.
For more options, visit https://groups.google.com/groups/opt_out.
>
> That looks like the output from "rails script/server" not "ruby
> script/server"
Thanks for your observation Colin
All is Well now :))))
--
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
In rails 2.3.5 (with active scaffold) all my columns in display were
sorted even though they belonged to a related table. But in Rails 3.2.8
, only columns which belong to the main table are sorted .To sort a
related table column we need to specifically add the line below
columns[:columnfromtable2].sort_by :sql => ['name']
I have many columns which are 'related' in many pages , it would be
tedious to add this line in them all
--
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
RecordSelect(which helps you pick one record out of many) works in Rails
3.2.8 in the main pages but not in the nested pages.
I am using active scaffold
Does anyone else also face the same problem??
--
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Il 31/10/12 07:28, wragen22 ha scritto:
> Hi all,
> for some reason adding the following is doing nothing...
>
> .post.hover {
> background: FAFAFA;
> Any ideas?
"background: #FAFAFA" ??
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Without to know the actual URL of the server it is not possible to check that, also you are missing what kind of error you get, so I can only guess that your certificate is for www.example.com and doesn't include example . com without www.
I have distribute a rails project.The server is in linode (apache+passenger).But i have strange question.when i access my site use <https://www.xxx.com> . it can access normally.But if i access <https://xxx.com>. it will be show a ssl error in page and need youconfirm the ssl error and then can goto the actual site.Who can tell me how can resolve it?--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/OLmYo7NSCCsJ.
For more options, visit https://groups.google.com/groups/opt_out.
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
On Wed, Oct 31, 2012 at 2:28 PM, wragen22 <bradwrage@gmail.com> wrote:Hi all,for some reason adding the following is doing nothing....post.hover {background: FAFAFA;I've got this in my posts.js coffee file$ ->$('.post').hover (event) ->$(this).toggleClass("hover")and my index is<% @posts.each do |post| %><div class="post"><strong><%= post.title %></strong><p><%= post.content %></p><div class="meta"><%= link_to time_ago_in_words(post.created_at) + " ago", post %><span class="admin">| <%= link_to "Edit", edit_post_path(post) %> |<%= link_to "Delete", post, :confirm => "Are you sure you want to delete this post?", :method => :delete %> |</span><div></div><% end %>Any ideas?can you check it via firebug or chrome's developer tools and check if the class really toggles (i'm pretty it does). if you can'tsee the changes maybe the change isn't that obvious. FAFAFA is very close to white so if you have a white background, youmay not notice the change.--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/nLNFo26DvSAJ.
For more options, visit https://groups.google.com/groups/opt_out.
--
-------------------------------------------------------------
visit my blog at http://jimlabs.heroku.com
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi all,for some reason adding the following is doing nothing....post.hover {background: FAFAFA;I've got this in my posts.js coffee file$ ->$('.post').hover (event) ->$(this).toggleClass("hover")and my index is<% @posts.each do |post| %><div class="post"><strong><%= post.title %></strong><p><%= post.content %></p><div class="meta"><%= link_to time_ago_in_words(post.created_at) + " ago", post %><span class="admin">| <%= link_to "Edit", edit_post_path(post) %> |<%= link_to "Delete", post, :confirm => "Are you sure you want to delete this post?", :method => :delete %> |</span><div></div><% end %>Any ideas?
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/nLNFo26DvSAJ.
For more options, visit https://groups.google.com/groups/opt_out.
-------------------------------------------------------------
visit my blog at http://jimlabs.heroku.com
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi,
On Wed, Oct 31, 2012 at 1:35 AM, Fahim Patel <pafahim@gmail.com> wrote:
> Q 1 Is any one of this is by default included in Rails ?
No.
> Q2 Any advantage of this gems over simple form tags ?
For me, most of the time there is not, actually they add overhead IMO
(at least for my purposes) so I actually just build meta-form-wrapper
helpers that generate generic left_text_area and other methods like it
that just add the classes I need for forms and wrap the <section>'s
around the generic helpers that Rails already provides. That is,
instead of including another dependency that I don't need, but for
some people they bring great benefit because they can handle HTML from
step 1 to end, I don't like that because I prefer to directly control
every bit of output my app makes.
Only you can evaluate whether or not they are worth it, it's a battle
of your own to fight, I can honestly say I would use them if I
actually had a use for them, and many people will agree they have a
use for them, but I personally don't have a use for them so I choose
not to use them. You have to evaluate that for yourself.
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
On Wed, Oct 31, 2012 at 1:28 AM, wragen22 <bradwrage@gmail.com> wrote:
Hi,
> for some reason adding the following is doing nothing...
Please note this list is for Rails questions, not HTML/CSS questions.
> .post.hover {
> background: FAFAFA;
FAFAFA is not a valid value for background, and you should be using
background-color if you only have a colour just for semantics but to
directly address your question, please try doing #fafafa, please also
note that the pseudo class for hover is :hover so try .post:hover
instead of .post.hover.
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
[Rails] What is Formtastic and SimpleForm gem ? Is any one of this is by default included in Rails ?
Hi all,
I read Formtastic and SimpleForm gem.
I am using 3.4
Q 1 Is any one of this is by default included in Rails ?
Q2 Any advantage of this gems over simple form tags ?
As per my knowledge we are using form helper , but still i raised the qustion ?
Thanks
Regards
Fahim Babar Patel
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/Al8_B1V9vrcJ.
For more options, visit https://groups.google.com/groups/opt_out.
Hi all,
.post.hover {background: FAFAFA;
$ ->$('.post').hover (event) ->$(this).toggleClass("hover")
<% @posts.each do |post| %><div class="post"><strong><%= post.title %></strong><p><%= post.content %></p><div class="meta"><%= link_to time_ago_in_words(post.created_at) + " ago", post %><span class="admin">| <%= link_to "Edit", edit_post_path(post) %> |<%= link_to "Delete", post, :confirm => "Are you sure you want to delete this post?", :method => :delete %> |</span><div></div><% end %>
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/nLNFo26DvSAJ.
For more options, visit https://groups.google.com/groups/opt_out.
On Tue, Oct 30, 2012 at 10:54 AM, Dave Aronson
<googlegroups2dave@davearonson.com> wrote:
> On Tuesday, October 30, 2012, Dmitry Maksyoma wrote:
> Maybe if you have a large app, but it sounded like the app in question was a
> typical small learner app. In that case, he can likely host it there for
> free. Can't get much cheaper than that. ;-)
I agree with you totally man. Not to mention Heroku only gets
expensive before you add in the tax on sysops. One might might
ignorantly assume that Heroku is expensive but in essence it's a lot
cheaper. At 2 dynos which is $35... to have the same setup of your
own would cost you twice as much.
To get 3 dynos having the same setup of your own only saves you around
$11 but after that one would need a systems administrator to manage
all these instances or at least a part time one to help you manage the
infrastructure that manages those -- that is unless you put it all on
one server, then there is no helping you anyways -- that or you like
to waste time not programming by managing your own clusters which is
fine by me but at that point you would save money at a cost of
development time which still ends up costing you money in the end, in
some way.
So what I am saying is, once somebody starts factoring in all the
costs, Heroku isn't all that expensive compared to what you could be
paying by doing it yourself, people choose to go their own route
because of infrastructure needs not because of the price of Heroku..
because people who actually plan out the numbers and look at Heroku's
infrastructure start to realize just how much it isn't expensive.
This is all based off of a single site and not something like a system
like Heroku that you manage on your own for your clients because the
other could lead to quite a few cost savings in some places but IMO it
probably won't be enough to justify the huge startup cost.
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
If you have a simple application, try railsplayground.com
I intend to step out of the 'learner app' zone as quickly as I can :)Thank you all
On Tuesday, October 30, 2012 6:00:21 PM UTC+2, Tommaso Visconti wrote:Il 30/10/12 16:54, Dave Aronson ha scritto:
> On Tuesday, October 30, 2012, Dmitry Maksyoma wrote:
>
> Heroku is quite expensive,
>
>
> Maybe if you have a large app, but it sounded like the app in question
> was a typical small learner app. In that case, he can likely host it
> there for free. Can't get much cheaper than that. ;-)
I'm trying appfog in these days and it's cool :)
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/FvT-wsNiyewJ.--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.