📜  rails 在控制器方法之间传递变量 - Ruby 代码示例

📅  最后修改于: 2022-03-11 15:04:49.101000             🧑  作者: Mango

代码示例1
@pages = Post.find.all

@@my_value = @pages.(any manipulations)

# now @@my_vales can be used in any actions of that controller..
# Be carefull, it is not thread-safe...